RHEL5 Packagement Management
RPM
To list all installed packages — and filter for oracle things..
rpm -qa |grep -i oracle
To remove a package..
rpm -e oracle-instantclient11.2-basic-11.2.0.1.0-1
Yum :
To search for both installed and available packages, do this.
Note the column on the right — shows which repo it is available from, or if it’s installed already.
[root@SGProdWs1v-O5208 ~]# yum list |grep php php52.x86_64 5.2.13-3.ius.el5 installed php52-cli.x86_64 5.2.13-3.ius.el5 installed php52-common.x86_64 5.2.13-3.ius.el5 installed php52-devel.x86_64 5.2.13-3.ius.el5 installed php52-soap.x86_64 5.2.13-3.ius.el5 installed php52-xml.x86_64 5.2.13-3.ius.el5 installed php-mysql.x86_64 5.1.6-27.el5 rhel-x86_64-server-5 php-ncurses.x86_64 5.1.6-27.el5 rhel-x86_64-server-5 php-nusoap.noarch 0.7.3-2.el5 epel php-odbc.x86_64 5.1.6-27.el5 rhel-x86_64-server-5 php-pdo.x86_64 5.1.6-27.el5 rhel-x86_64-server-5 php-pear.noarch 1:1.4.9-6.el5 rhel-x86_64-server-5 php-pear-Auth-RADIUS.noarch 1.0.6-1.el5 epel php-pear-Auth-SASL.noarch 1.0.4-1.el5 epel
