LinuxMoz

Linux Stuff && Coffee

RPM List Installed Packages Command

| Comments

How To list all RPM packages on a system using the RPM package management system you need to use the following RPM list installed packages command.

RPM List all Packages

Enter the following command as root to List all installed RPM’s on a system:

1
rpm -qa

You might want to limit the output of the RPM list installed packages command (rpm -qa) using the less command (or more which ever you favor).

1
rpm -qa | more

Check RPM is installed

If you need to check if an RPM packages is installed you can grep the out put, say for example I want to find out what version of PHP is installed on my CentOS server:

1
rpm -qa | grep php

This will give you an output similar to:

1
2
3
4
5
6
7
8
9
10
11
[[email protected] ~]# rpm -qa | grep php
php-pdo-5.3.3-3.el6_2.6.x86_64
php-mysql-5.3.3-3.el6_2.6.x86_64
php-gd-5.3.3-3.el6_2.6.x86_64
php-common-5.3.3-3.el6_2.6.x86_64
php-odbc-5.3.3-3.el6_2.6.x86_64
php-mbstring-5.3.3-3.el6_2.6.x86_64
php-pear-1.9.4-4.el6.noarch
php-cli-5.3.3-3.el6_2.6.x86_64
php-5.3.3-3.el6_2.6.x86_64
php-xmlrpc-5.3.3-3.el6_2.6.x86_64

Comments