LinuxQuestions.org
Help answer threads with 0 replies.
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, 12:08 PM   #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, 12:11 PM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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, 12:23 PM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 2,284

Rep: Reputation: 590Reputation: 590Reputation: 590Reputation: 590Reputation: 590Reputation: 590
you can also use "yum list installed"
 
Old 10-03-2013, 12:29 PM   #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, 01:12 PM   #5
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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, 01:45 PM   #6
mddesai
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch
Posts: 485

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

Last edited by mddesai; 10-03-2013 at 01:56 PM.
 
Old 10-03-2013, 02:48 PM   #7
mddesai
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch
Posts: 485

Rep: Reputation: 133Reputation: 133
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, 03:21 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,169

Rep: Reputation: 2644Reputation: 2644Reputation: 2644Reputation: 2644Reputation: 2644Reputation: 2644Reputation: 2644Reputation: 2644Reputation: 2644Reputation: 2644Reputation: 2644
Listing packages alphabetically :

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:15 AM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Newbie 1 03-29-2010 01:56 PM
how to save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 12:36 PM
yum and packagekit - list installed packages and dependencies allele Linux - Newbie 2 06-24-2009 04:31 PM
updating yum packages list bakhanbeigi Linux - Networking 3 08-24-2008 02:47 AM


All times are GMT -5. The time now is 03:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration