Linux rpm List Installed Packages

last updated in Categories , ,

How do I list all installed packages using rpm command on CentOS/Suse/Fedora/RHEL/Scientific and Red Hat Enterprise Linux?

The rpm command is a powerful Package Manager, which can be used to build, install, query, verify, update, and erase individual software packages. The latest version of Red hat and friends recommend using the yum command.

rpm command syntax

The rpm command has -a option to query (list) all installed packages.

List all installed packages using rpm -a option

Open the Terminal or login to the remote server using ssh client. Type the following command as root user:
# rpm -qa
Sample outputs:


You can display more information about package using the following command:
# rpm -qi iptables
Sample outputs:

Name        : iptables                     Relocations: /usr 
Version     : 1.3.5                             Vendor: Red Hat, Inc.
Release     : 1.2.1                         Build Date: Thu 13 Jul 2006 07:17:24 PM CDT
Install Date: Tue 10 Jul 2007 08:49:20 AM CDT      Build Host:
Group       : System Environment/Base       Source RPM: iptables-1.3.5-1.2.1.src.rpm
Size        : 676805                           License: GPL
Signature   : DSA/SHA1, Thu 18 Jan 2007 09:47:22 AM CST, Key ID 5326810137017186
Packager    : Red Hat, Inc. 
URL         :
Summary     : Tools for managing Linux kernel packet filtering capabilities.
Description :
The iptables utility controls the network packet filtering code in the
Linux kernel. If you need to set up firewalls and/or IP masquerading,
you should install this package.

You can list package files using the following command:
# rpm -ql iptables
Sample outputs:


Feel free to add pager such as less or more to display output one screen at a time:
# rpm -qa | less
# rpm -qa | more
# rpm -qa | grep 'something'
# rpm -ql iptables | more

See also
  • Man pages: yum(8)

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

13 comment

  1. Merci beaucoup, I was just searching for that option right now!

    And if one has a lot of .rpm, it’s great to pipe it through sort and more, like this:

    rpm -qa | sort -fu | more

    then you got a nice alphabetical list that you don’t need to scroll up and down…

    Greetings from France

  2. hey ol of u’ve written how to list the installed packages, but is there a way to install a new package using rpm???????
    please help me out!!!!!!!!!!

  3. Hi! ,
    By using these commands I can’t find package which I have installed by other way, par exemple: with ‘make install’.

  4. Unless you have compiled your own rpm or installed an rpm, you will not see custom built packages in your rpm list.

  5. number of rpm installed, (just to take a count)

    [oc@150820134 ~]$ rpm -qa | wc -l
    [oc@150820134 ~]$

  6. Hi All,

    We can check the whether group packages are installed using yum grouplist | grep “Development Tools” — for example

    Is it possible to find using same using rpm

    Still, have a question? Get help on our forum!