I usually work on Debian based Linux distros, but the other day while sorting some NYC street photos I took a friend contacted me asking me how to list installed packages in Red Hat, CentOS and Fedora.

  1. Using RPM Package Manager
  2. Using YUM Package Manager
  3. Using YUM-Utils

Using RPM Package Manager

The RPM package manager is an open source, low level package manager which runs on Red Hat based Linux distros. You can list installed Packages in Red Hat very easy with rpm.

The following command will print a list of all installed packages on your Linux box, the flag -q means query and the flag -a means to list all installed packages:

rpm -qa

Using YUM Package Manager

YUM stands for Yellowdog Updater Modified is an interactive, front-end rpm based package manager.

Using the command below will list all installed packages on your Linux box. One cool thing about this Linux package manager is that it lists the repository from which a package was installed:

yum list installed

Using YUM-Utils

Yum-utils is an assortment of tools and programs for managing yum repositories in your Linux box. Using this tool you can install debug packages, source packages and you can view extended information from repositories. You might need to install it using yum:

yum update && yum install yum-utils

Once you have Yum-Utils installed run the following command in your Linux terminal to list all installed packages:

repoquery -a --installed

Leave a comment

Your email address will not be published. Required fields are marked *