rpm command: list packages
Q. How do I search and query the packages installed on my Linux box using rpm? (OpenSUSE, FedoraCore, Red Hat, CentOS, etc).
A. You can query the packages using:
rpm -qa
This will output all packages installed, if you are looking for a particular package, you can pipe your results into grep. Here's for example a search for all packages that have "kernel" in the name:
rpm -qa | grep "totem"
Once you have narrowed down the package name, you can display the it's information:
rpm -qi totem
You can also query the contents of the package, by running the following command:
rpm -ql totem
Last Updated on Thursday, 19 July 2012 09:17
Add your comment
yvComment v.1.24.0