YUM - List installed and available packages

The yum list command will list both installed and available packages in the repositories you have installed. The repositories you have installed will be listed at the beginning of the output. It is very common to install the EPEL (Extra Packages for Enterprise Linux) repository.

~]$ yum list | head
 * base: centos.mirrors.tds.net
 * centos-sclo-rh: mirror.den01.meanservers.net
 * centos-sclo-sclo: mirror.den01.meanservers.net
 * epel: mirror.team-cymru.com
 * extras: centos.mirrors.tds.net
 * updates: mirror.genesishosting.com

 

Something like this will be returned, which shows the package name, version, and repository the package is in.

ansible.noarch         2.9.18-1.el7                        epel
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

 



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 39745 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |