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:
(Without the Quotation Marks)
"yum list installed | more yum list installed | less"
Or direct it out to a file for viewing in a text editor:
(Without the Quotation Marks)
"yum list installed > /tmp/yum-list.txt"
Go there
http://www.electrictoolbox.com/yum-list-installed-packages/
Or I sent my yum-list text to my Documents Dir, like this...
(Without the Quotation Marks).
"yum list installed > /home/don/Documents/yum-installed-apps-list.txt"
I like to use "su" and get "root" privilege's to make sure that I get them all. This worked nicely for me. But, you do have to change the resulting file's permissions from "root" to your regular user, in order to edit or rename it. I use Krusader in "root" mode to do this. So, letting it go to the "/tmp" Directory can be good. Since you can just copy it from there with Krusader or which ever file manager that you use to your desired Directory. That will automatically change the file permissions to your user name.
Here's my Command Line Output from doing this...
[don@RedBlackBioStarFedora14 ~]$ su
Password:
[root@RedBlackBioStarFedora14 don]# yum list installed > /home/don/Documents/yum-installed-apps-list.txt
[root@RedBlackBioStarFedora14 don]#
Don
- Fedora, using Yum and --skip-broken to install Don's Favorite Fedora Apps
- DonsDeals: Don's favorite Fedora Apps...
- DonsDeals: List installed packages with YUM
- DonsDeals: Using Yum --SkipBroken
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)
No comments:
Post a Comment