List installed packages with YUMList installed packages with YUM

Posted December 2nd, 2008 in Linux/Unix/BSD

This post looks at how to list the installed packages with YUM from the command line for YUM based Linux distributions, such as CentOS and Fedora.

It's very simple:

yum list

This will result in a list of all installed packages in case-sensitive alphabetical order, like in the following example:

Loading "installonlyn" plugin
Setting up repositories
Reading repository metadata in from local files
Installed Packages
Deployment_Guide-en-US.noarch            5.1.0-11.el5.centos.1  installed
GConf2.i386                              2.14.0-9.el5           installed
ImageMagick.i386                         6.2.8.0-3.el5.4        installed
MAKEDEV.i386                             3.23-1.2               installed
NetworkManager.i386                      1:0.6.4-6.el5          installed
NetworkManager-glib.i386                 1:0.6.4-6.el5          installed
ORBit2.i386                              2.14.3-4.el5           installed
PyQt.i386                                3.16-4                 installed
PyXML.i386                               0.8.4-4                installed
SysVinit.i386                            2.86-14                installed
a2ps.i386                                4.13b-57.1.el5         installed
acl.i386                                 2.2.39-2.1.el5         installed
acpid.i386                               1.0.4-5                installed
...
zsh.i386                                 4.2.6-1                base
zsh-html.i386                            4.2.6-1                base
zsplit.i386                              1.2.0-1.2.el5.rf       rpmforge
zssh.i386                                1.5-0.c.2.el5.rf       rpmforge
zsync.i386                               0.5-1.el5.rf           rpmforge
zvbi.i386                                0.2.33-1.el5.rf        rpmforge
zvbi-devel.i386                          0.2.33-1.el5.rf        rpmforge
zziplib.i386                             0.13.45-1.el5.rf       rpmforge
zziplib-devel.i386                       0.13.45-1.el5.rf       rpmforge

The list is going to be pretty long, so you might want to pipe it through "more" or "less" so you can scroll through it a page at a time:

yum list | more
yum list | less

or direct it out to a file for viewing in a text editor:

yum list > /tmp/yum-list.txt

Related posts:

Recent posts: