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
|
|
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
|
|
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
|
|
This will give you an output similar to:
1 2 3 4 5 6 7 8 9 10 11 |
|