List 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:
- 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)
Recent posts:
- MySQL queries for article summaries part 2 of 2 (Tuesday, January 6th 2009)
- Aims for 2009 (Monday, January 5th 2009)
- Weekly Roundup - January 5th 2008 (Monday, January 5th 2009)
- MySQL queries for article summaries part 1 of 2 (Sunday, January 4th 2009)
- 2008 Summary of Posts (Saturday, January 3rd 2009)
- 2008 / 2009 overview (Friday, January 2nd 2009)
Subscribe to RSS Feed / Email / Bookmark / Share
Use the buttons below to subscribe to my RSS feed to be notified next time something is posted, share this post with others, or subscribe by email and have my posts sent in a daily email.
Posts are made using the following schedule (although it may vary some weeks): Mondays & Fridays = PHP; Tuesdays & Saturdays = MySQL; Wednesdays & Sundays = Javascript/jQuery; Thursdays = HTML/CSS.
