How to List Installed Packages Using RPM [2 Practical Cases]

LINUX
FUNDAMENTALS
A Complete Guide for Beginners Enroll Course Now

RPM which stands for Red Hat Package Manager is a package management system used primarily by Red Hat-based distributions, such as RHEL, Fedora, CentOS, etc. It allows users to easily install, update and uninstall .rpm software packages on their Unix/Linux system. Other package managers like YUM and DNF are also very common in Red Hat-based distributions. Today I will show you how to list the installed packages using RPM in Red Hat-based distributions.

Key Takeaways

  • Checking the installed packages in Red Hat-based distributions.

Requirements

  • You need to have a Red Hat-based distribution.
  • You need access to the terminal.

Process Flow Chart

[Distro Used Throughout the Tutorial: RHEL 9.2]step by step process on how you can list installed app packages in terminal using RPM

2 Cases to List Installed Packages Using RPM

RPM package manager is best suited to use in Red Hat-based Linux systems. It can streamline your package management experience. If you want to know how to install an app package using rpm check this amazing article “How to Install Local Package Using RPM”. For uninstalling an app package using rpm check this another detailed article “How to Uninstall Package Using RPM”. RPM supports queries with different types of options. Using these queries you can check the installed app and its details.

Case 01: Check an Installed App Using RPM

In case you want to check if one particular app is installed in your Red Hat-based system you can follow the following step to check the package name or even app package details:

Steps to Follow >

➊ At first, open the Terminal on your system.

➋ Now, type the following command:

rpm -q vim-enhanced
EXPLANATION
  • rpm: Manages rpm packages in Red Hat-based distributions.
  • q: Query command to retrieve information using rpm command.
  • vim-enhanced: Name of the app package I am checking.

➌ After that hit ENTER. If the app is installed it will be shown in the terminal. It will look similar to the image below.

➍ Or if you want to check an installed app with details run the following command:

rpm -qi vim-enhanced
EXPLANATION
  • i: Provides more detailed info about a specific app package.

list a specific installed app package in terminal using rpm with app details

Your terminal should look like the above image. You can see that the -qi option gives you more detailed information about the installed app package.

Case 02: Check All the Installed App Using RPM

Additionally, if you want to check all installed rpm packages at once you can run the following command to see all of your installed packages altogether:

Steps to Follow >

➊ open the Terminal on your system.

➋ Now, type the following command:

rpm -qa
EXPLANATION
  • a: it makes a query to show all installed app packages.

list all installed app packages in the terminal using rpm

➌ After that hit ENTER. All installed rpm packages will be shown in the terminal like the above image.

Conclusion

This article checked the easiest way by which you can check the installed package in a Red Hat-based system. I hope whether you use  RPM, YUM, DNF, or any other package manager in a Red Hat-based system, you will be able to handle RPM software packages and manage an up-to-date Linux system.

People Also Ask

How do I see all installed packages in Ubuntu?

To see all installed packages in any Debian-based Linux system like Ubuntu just run apt list --installed in the terminal. It will display all installed packages in your system.

How to check installed packages in Linux command?

Depending on the Linux distribution and package manager the command changes to check installed packages in Linux terminal. The apt list --installed is used in Debian-based Linux, rpm -qa is used in RPM-based distribution, and for Arch Linux pacman -Q is used to see all installed packages.

How do I list yum installed packages?

To list all installed packages using yum just run yum list installed in your RPM-based distribution.

How do I know where RPM is installed?

You can use rpm -ql to list files from all installed rpm packages. Or you can use rpm -ql package_name to list files specific to a particular package.


Related Articles


<< Go Back to Package Installation in Linux | Package Management in Linux | Learn Linux Basics

5/5 - (6 votes)
Ridoy Chandra Shil

Hello everyone. I am Ridoy Chandra Shil, currently working as a Linux Content Developer Executive at SOFTEKO. I am a Biomedical Engineering graduate from Bangladesh University of Engineering and Technology. I am a science and tech enthusiast. In my free time, I read articles about new tech and watch documentaries on science-related topics. I am also a big fan of “The Big Bang Theory”. Read Full Bio

Leave a Comment