Detection and installation of software packages required for oracle11g installation under Linux
1 first before executing the script, you need to put out all the required packages, and then put in a folder called Patch, this folder and the script in the same directory can be
2 Copy the following script content to Linux, create a new script file, and then execute it.
the contents of the script are as follows:
#!/bin/sh
count=0
arr= (binutils-2* compat-libstdc++-33* elfutils-libelf-0.* elfutils-libelf-devel-0.* elfutils-libelf-devel-static-0.* gcc-4.* gcc-c++-4* glibc-2.* glibc-common-2.* glibc-devel-2.* glibc-headers-2* kernel-headers-2.* ksh-* libaio-0.* libaio-devel-0.* libgcc-4.* libgomp-4.* libstdc++-4.* libstdc++-devel-* make-* numactl-devel-* sysstat-*)
len=${#arr [@]}
For ((i=0;i<len;i++));
Do
char=${arr[$i]}
Rpm-qa | grep "^ $char"
if [$?! = 0]; Then
error[$count]=${arr[$i]}
count=$ (($count + 1))
echo "+++++++++++++++the ${arr[$i]}^is not installed++++++++++++++++++"
fi
Done
if [$count-lt "0"];then
echo "You have $count Patchs is not installed."
echo "The Not installed patch is:"
len1=${#error [@]}
For ((ii=0;ii<len1;ii++));
Do
echo "${error[$ii]}^"
Done
echo-e "is sure to install the Patch[yes or no]:\c"
Read Select
if [$select = = "Yes"]; Then
For ((is=0;is<len1;is++));
Do
var=${error[$is]}
RPM-IVH./patch/$var. RPM
Done
fi
Else
echo "++++++++++++++++++++++check pass!+++++++++++++++++++++++++++"
fi
count=0
after the package is installed, the contents of the script can be executed, and then the check PASS will be displayed to complete the detection and installation of the package.
This article is from the "0805" blog, please be sure to keep this source http://zrxwcc.blog.51cto.com/6160351/1918556
Detection and installation of software packages required for oracle11g installation under Linux