One of the several duties of a system administrator is to install and manage software on a computer system-Linux in this case and in order keep track of installed/available software packages on your system, you can learn, and/or keep in mind a few quick commands.
In this article, we will explain how to list all installed rpm packages on CentOS, RHEL and Fedora distributions using four different ways.
1. Using RPM Package Manager
RPM (RPM Package Manager) formerly known as Red-Hat Package Manager is an open source, low-level package manager, which runs on Red Hat Enterprise Linux (RHEL) as well as other Linux such as CentOS, Fedora and UNIX systems.
You can compare it to DPKG Package Manager, the default packaging system for Debian and it’s derivatives such as Ubuntu, Kali Linux etc.
The following command will print a list of all installed packages on your Linux system, the flag -q
meaning query and -a
enables listing of all installed packages:
# rpm -qa
List All Installed Packages in CentOS
2. Using YUM Package Manager
YUM (Yellowdog Updater, Modified) is an interactive, front-end rpm based, package manager.
You can use the yum command below to list all installed packages on your system, one advantage with this method is, it includes the repository from which a package was installed:
# yum list installed
Yum – List All Installed Packages
3. Using YUM-Utils
Yum-utils is an assortment of tools and programs for managing yum repositories, installing debug packages, source packages, extended information from repositories and administration.
To install it, run the command below as root, otherwise, use sudo command:
# yum update && yum install yum-utils
Once you have it installed, type the repoquery command below to list all installed packages on your system:
# repoquery -a --installed
Repoquery – List All Installed Packages
To list installed packages from a particular repository, use the yumdb program in the form below:
# yumdb search from_repo base
List All Installed Packages from Repository
Read more about package management in Linux:
- Linux Package Management with Yum, RPM, Apt, Dpkg, Aptitude and Zypper
- 5 Best Linux Package Managers for Linux Newbies
- 20 Useful ‘Yum’ Commands for Package Management
- 27 ‘DNF’ (Fork of Yum) Commands for RPM Package Management in Fedora
In this article, we showed you how to list all installed packages on CentOS or RHEL four different ways. Share your thoughts concerning this article via the feedback section below.
Source: tecmint.com