How to find installed RPM software packages
Posted Under (Linux) by Ramraj Edagutti on Jul Tue, 2009
I was trying to install mysql in centOS, which is rpm based Linux operating system like redhat, fedora etc. And I wanted to find out if it already installed or not.
Here is the command which list all the installed rpm software packages..
-
Above command list all packages, q means query and a means all.
-
-
rpm command generally used for installing rpm archive packages manually, and one can also see all installed packages as mentioned.
-
-
If you want to see few installed packages at a time then use below command
-
<pre lang="bash">rpm -qa | less
This command lists the installed rpm packages in less linux shell text editor, it will show few at a time, to see more just keep pressing enter button on your keyboard.
To see specific rpm software package like mysql or python, run below command
-
rpm -qa | grep python — To see python packages
To list the rpm packages in sorted manner, run below command
-
To get sorted rpm packages list in text file, run below command
-
<pre lang="bash">rpm -qa | sort > packages.txt
I hope these commands may help in finding installed rpm packages. For any help email me or give a comment below in the comment box.
