LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2013, 11:08 AM   #1
sysbox
Member
 
Registered: Jul 2005
Posts: 117

Rep: Reputation: 15
CentOS/RedHat: How to list all packages I installed via yum?


My PC runs CentOS 6.4 64-bit. Is there an easy way to list all the packages I ever installed via YUM (the package manager for RedHat-like systems)?
 
Old 10-03-2013, 11:11 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
To retrieve a full list of the installed packages
Code:
rpm -qa
To review the installation history via yum, take a look at
Code:
/var/log/yum.log
 
Old 10-03-2013, 11:23 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
you can also use "yum list installed"
 
Old 10-03-2013, 11:29 AM   #4
sysbox
Member
 
Registered: Jul 2005
Posts: 117

Original Poster
Rep: Reputation: 15
I should clarify, or re-clarify. What I want is the list of packages that I manually installed via yum, not the list of all installed packages.

Why? I might have to re-install CentOS on my machine since the memory cache is growing too large and that prevents my apps from running. Before I do so, I'd like to know what packages I installed via yum so I can more easily duplicate the previous state.
 
Old 10-03-2013, 12:12 PM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by sysbox View Post
I should clarify, or re-clarify. What I want is the list of packages that I manually installed via yum, not the list of all installed packages.

Why? I might have to re-install CentOS on my machine since the memory cache is growing too large and that prevents my apps from running. Before I do so, I'd like to know what packages I installed via yum so I can more easily duplicate the previous state.
Again /var/log/yum.log gives exactly the required information.
 
Old 10-03-2013, 12:45 PM   #6
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
You can try
Code:
yum list installed | grep -v 'anaconda\|updates'

Last edited by Madhu Desai; 10-03-2013 at 12:56 PM.
 
Old 10-03-2013, 01:48 PM   #7
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
Another way to find out what packages you have installed is

Find the date when you have installed the OS
Code:
# ls -l /root/install.log
-rw-r--r--. 1 root root 28280 Jun 26 16:33 /root/install.log
Find out what packages were installed while installing OS:
Code:
# cat /root/install.log
List all installed packages by date:
Code:
# rpm -qa --last > new_list
new_list - install.log = Packages that you installed

But still i insist, to use the one i mentioned in previous post.
 
1 members found this post helpful.
Old 10-03-2013, 02:21 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Listing packages alphabetically :

$ rpm -qa | sort > installed-rpms.txt
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Software 2 03-30-2010 08:15 AM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Newbie 1 03-29-2010 12:56 PM
how to save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 11:36 AM
yum and packagekit - list installed packages and dependencies allele Linux - Newbie 2 06-24-2009 03:31 PM
updating yum packages list bakhanbeigi Linux - Networking 3 08-24-2008 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration