Check the shell script that installs the IBM Installition Manager Dependency Package

Source: Internet
Author: User

Questions: Redhat 6.3 Virtual Machine performs an IBM Installition manager installation with a direct return, prompting for a new message that does not support virtual machine hardware

Solution: IBM installition Manager relies on incomplete packages and uses shell scripts to check for and install missing packages

#!/bin/SH# Check the 16 installation packages installed by IBM Installition Manager that are not required to be fully consistent or updated packages="compat-db compat-libstdc++-33 elfutils elfutils-libs gtk2 gtk2-engines ksh libstdc++"Packages=${packages}"libxft libxmu libxp libxtst pam libcanberra-gtk2 LIBGCC packagekit-gtk-module"versions=("4.6" "3.2" "0.152" "0.152" "2.18" "2.18" "20100621" "4.4" "2.1" "1.0" "1.0" "1.0" "1.1" "0.22" "4.4" "0.5") I=0 forPackageinch$packages Dopackageversion=${package}"-"${versions[i]}if[' Rpm-qa |grep$packageversion |WC-L '-ne0 ]      Then       Echo${i}": Exists The package: $packageversion"    Else       if[' Rpm-qa |grep$package |WC-L '-ne0 ]        Theninstalled= ' Rpm-qa |grep$package 'Echo${i}": Not exist The package like : $packageversion"           Echo "But exists other versions:"           Echo "$installed"       Else           Echo${i}": Installing the package: $package"           Yum Install$packagefi    fiI=$ (($i +1)) Done

Check the shell script that installs the IBM Installition Manager Dependency Package

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.