how to get the list of all packages installed on my linux machine ? (CentOS)

Posted by

If you at anytime need to know if a specific package is installed or not on your machine you can use the following command to get the list of all packages already installed:

Example: Using CentOS 7.2

For example, we want to know if the package of the editor “nano” is already installed or not, you can get the entire list and check if there is the package as the following example,

[root@ebsconnectors home]# rpm -qa
libasyncns-0.8-7.el7.x86_64
binutils-2.23.52.0.1-55.el7.x86_64
gnome-documents-3.14.3-2.el7.x86_64
libreport-plugin-reportuploader-2.1.11-32.el7.centos.x86_64
mozilla-filesystem-1.9-11.el7.x86_64
nano-2.3.1-10.el7.x86_64
NetworkManager-team-1.0.6-27.el7.x86_64
pam-1.1.8-12.el7_1.1.x86_64
vinagre-3.14.3-1.el7.x86_64
libsrtp-1.4.4-10.20101004cvs.el7.x86_64
autocorr-en-4.3.7.2-5.el7.noarch
libXfixes-5.0.1-2.1.el7.x86_64
libgusb-0.1.6-3.el7.x86_64

Or you can use the same command specifying the name of the package that you want to know if it is already installed or not wth the following command:

root@ebsconnectors home]# rpm -qa *nano*
nano-2.3.1-10.el7.x86_64

All packages on this distributions (CentOS / RHEL) are “rpm“, and this is the main command here, you can use the rpm command with some other parameters to get more information.

If you need more help use the following command and read how to use it.

[root@ebsconnectors home]# man rpm

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s