Home Linux CentOS 2 Methods to Check Installed packages on CentOS

2 Methods to Check Installed packages on CentOS

How can I check the installed packages on CentOS Server??

2 methods to check installed packages on CentOS2 methods to check installed packages on CentOS

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.

  1. RPM Package Manager
  2. YUM

1. Using RPM Package Manager

We can check the packages installed using rpm command with -qa options.

# rpm -qa
rpm command outputrpm command output

where,
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
rpm with grep commandrpm with grep command

Check Full Detail of Installed Package

To check full detail of the installed packages on CentOS, run the rpm command with -qi options

Package full info using rpmPackage full info using rpm

where,
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
yum command outputyum command output

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
Check specific package using yum Check specific package using yum

Recommended: 6. YUM commands for package management


Congratulations !!! You learn 2 methods to check the installed packages on CentOS server.

LEAVE A REPLY

Please enter your comment!
Please enter your name here