Related Items  

Linux and Windows Support  

make-it-great-again

Login or Register  

If you wish to contribute an article, please login or register.

rpm command: list packages

PrintE-mail

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

 

Add your comment

Your name:
Subject:
Comment:
  The word for verification. Lowercase letters only with no spaces.
Word verification:
yvComment v.1.24.0
   
Copyright © 1999 - 2017 Virtual Helpme | r | Original Template: Allrounder