List installed packages with YUM
Posted December 2nd, 2008 in Linux/Unix/BSD (Updated June 26th, 2009)
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 installed
This will result in a list of all installed packages in case-sensitive alphabetical order, like in the following example:
Loading "fastestmirror" plugin Loading "installonlyn" plugin Installed Packages Deployment_Guide-en-US.noarch 5.1.0-11.el5.centos.1 installed GConf2.i386 2.14.0-9.el5 installed GConf2.x86_64 2.14.0-9.el5 installed ImageMagick.i386 6.2.8.0-3.el5.4 installed ImageMagick.x86_64 6.2.8.0-3.el5.4 installed MAKEDEV.x86_64 3.23-1.2 installed NetworkManager.x86_64 1:0.6.4-6.el5 installed ORBit2.i386 2.14.3-4.el5 installed ORBit2.x86_64 2.14.3-4.el5 installed SysVinit.x86_64 2.86-14 installed acl.x86_64 2.2.39-2.1.el5 installed acpid.x86_64 1.0.4-5 installed ... zip.x86_64 2.31-1.2.2 installed zlib.x86_64 1.2.3-3 installed zlib.i386 1.2.3-3 installed zlib-devel.i386 1.2.3-3 installed zlib-devel.x86_64 1.2.3-3 installed
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 installed | more yum list installed | less
or direct it out to a file for viewing in a text editor:
yum list installed > /tmp/yum-list.txt
Related posts:
- Add the RPMForge custom repository to CentOS (Thursday, November 27th 2008)
- Yum error Metadata file does not match checksum (Tuesday, November 27th 2007)
- Install Yum on openSUSE with Yast (Friday, November 23rd 2007)
- Yum sqlite database disk image is malformed error (Monday, October 29th 2007)
- Install yum with rpm on CentOS (Tuesday, October 16th 2007)

Comments
blog comments powered by Disqus