FreeKB - yum list (list installed and available packages)
Linux Commands - yum list (list installed and available packages)

The yum list command will list both installed and available packages.

yum list
. . .
openssh-server.x86_64  2.4.6-45.el7.centos.4               @base
openssl.x86_64         2.4.6-45.el7.centos.4               @base
krb5.x86_64            2.4.6-45.el7.centos.4               @updates
nginx.x86_64           2.4.6-45.el7.centos.4               @base
httpd.x86_64           2.4.6-45.el7.centos.4               @base


The yum list installed command can also be used to list only installed packages.

yum list installed | grep -i httpd
. . .
Installed Packages
httpd.x86_64           2.4.6-45.el7.centos.4               @updates


Following are commonly used yum commands.

Alternatively, the Ansible yum module can be used to automate the process of managing packages.

Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter 7fd50 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |