20 Install Packages


Overview

I am going to install the missing packages manually instead of relying on the installation wizard.

References

Procedure

Find the Missing Packages

From Table 3.1 in 3.1.3 Package Requirements for Oracle Management Service , the file, required_pkg.dat , is constructed, as follows, to contain the name, version, release, and architecture of the required packages:

cat <<DONE | sed -e 's/\\t/\t/g' | sort >required_pkg.dat
make\t3.81\t?\t?
binutils\t2.20.51.0.2\t5.11\t?
gcc\t4.4.4\t?\t?
libaio\t0.3.107\t?\t?
glibc-common\t2.12\t1\t?
libstdc++\t4.4.4\t?\t?
libXtst\t1.0.99.2\t3.el6\tx86_64
sysstat\t9.0.4\t?\t?
glibc-devel\t2.12\t1.7.el6\ti686
glibc-devel\t2.12\t1.7.el6\tx86_64
DONE

This file is converted to a sed script, packages.sed , as follows:

sed -ne 's/\([^\t]*\).*/\/\^\1\\t\/p/p' required_pkg.dat | sort -u >packages.sed

The contents of this file are:

/^binutils\t/p
/^gcc\t/p
/^glibc-common\t/p
/^glibc-devel\t/p
/^libaio\t/p
/^libstdc++\t/p
/^libXtst\t/p
/^make\t/p
/^sysstat\t/p

This script is used to filter to the rpm output to see what packages have been installed:

rpm -qa --queryformat "%{NAME}\t%{VERSION}\t%{RELEASE}\t%{ARCH}\n" | \
  sed -nf packages.sed | \
  sort >found_pkg.dat

The contents of found_pkg.dat are:

binutils	2.20.51.0.2	5.36.el6	x86_64
gcc	4.4.7	4.el6	x86_64
glibc-common	2.12	1.132.el6	x86_64
glibc-devel	2.12	1.132.el6	x86_64
libaio	0.3.107	10.el6	x86_64
libstdc++	4.4.7	4.el6	x86_64
libXtst	1.2.1	2.el6	x86_64
make	3.81	20.el6	x86_64
sysstat	9.0.4	22.el6	x86_64

Status of Packages

Combining required_pkg.dat with found_pkg.dat , the results for OEL6u5 are found to be:

Name Required Found
Version Release Arch Version Release Arch
binutils 2.20.51.0.2 5.11 ? 2.20.51.0.2 5.36.el6 x86_64
gcc 4.4.4 ? ? 4.4.7 4.el6 x86_64
glibc-common 2.12 1 ? 2.12 1.132.el6 x86_64
glibc-devel 2.12 1.7.el6 i686 Not Found
x86_64 2.12 1.132.el6 x86_64
libaio 0.3.107 ? ? 0.3.107 10.el6 x86_64
libstdc++ 4.4.4 ? ? 4.4.7 4.el6 x86_64
libXtst 1.0.99.2 3.el6 x86_64 1.2.1 2.el6 x86_64
make 3.81 ? ? 3.81 20.el6 x86_64
sysstat 9.0.4 ? ? 9.0.4 22.el6 x86_64

Install Missing Package

From the above table, there is only one (1) missing or outdated package:

  1. glibc-devel.i686

I used the following yum command to install this missing package:

sudo yum install glibc-devel.i686

This was successfully done. The log is attached as 20 Install Packages.log .