How can I check the installed packages on CentOS Server??
This article will help you to check installed software on CentOS / RHEL Server. Where packages are the collection of the libraries, executables etc in a single file.
We will let you know 2 methods to check installed software on the CentOS server.
- RPM Package Manager
1. Using RPM Package Manager
We can check the packages installed using rpm command with -qa options.
# rpm -qa
q = query
a = all
To Check specific package is Installed or Not
Using rpm command to check for the specific package is installed or not, need to run the following command. If package is installed, will show the package name and if it is not installed then output would be blank as shown in the snapshot.
# rpm -qa | grep gedit
Check Full Detail of Installed Package
To check full detail of the installed packages on CentOS, run the rpm command with -qi options
q = query
i = information
2. Using YUM
Another method to check the installed packages on the CentOS is yum package manager. Run the yum command as shown below:
# yum list installed
Using this method we can also check the package repository name.
To check specific package using yum command
Run the following command to check the specific package is installed or not on the CentOS.
# yum list installed | grep gedit
Recommended: 6. YUM commands for package management
Congratulations !!! You learn 2 methods to check the installed packages on CentOS server.