Quick Script to Check Required Packages on Linux

A very quick script to check if the required packages are installed on Linux, I used this one on RHEL 5.5 to check the packages for Oracle Installation

rpm -q –qf ‘%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n’ \

binutils control-center gcc gcc-c++ glibc glibc-common \

libstdc++ libstdc++-devel make sysstat libaio \

libaio-devel openmotif21 glibc-devel libgcc \

gdbm libxp libgomp util-linux xorg-x11-libs-compat \

compat-libstdc++ \

elfutils-libelf-devel elfutils-libelf-devel-static \

libaio-devel unixODBC unixODBC-devel xorg-x11-libs-compat \

unixODBC unixODBC-devel kernel-headers binutils openmotif21 make gdbm \

libXp libgomp compat-libstdc

Script without unixODBC Drivers

rpm -q –qf ‘%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n’ \

binutils compat-libstdc++* elfutils-libelf \

elfutils-libelf-devel gcc gcc-c++ glibc glibc glibc-common \

glibc-devel glibc-devel glibc-headers ksh libaio \

libaio libaio-devel libaio-devel libgcc libgcc \

libstdc++ libstdc++ libstdc++-devel make \

numactl-devel sysstat