LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-25-2010, 04:06 PM   #1
compass2007
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
[RHEL4]::How to check what packages were removed?


Hi, I've just joined this LQ forum as I couldn't find my answer on the web.

I am trying to find if there is a way to check/find out what packages were removed. In other words, I am looking for the history of packages that were ever removed.

I already know how to find what packages were installed using <rpm -qa> command, but it doesn't tell what has been REMOVED.

For example, how do I know if the <gcc> package was ever installed before, and when it was removed?
 
Old 01-25-2010, 04:45 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
Open up the log file. I don't have a RHEL in front of me but I've seen it before. Somewhere in /var/log - maybe up2date.log ?
 
Old 01-26-2010, 01:18 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,683

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
Welcome to LQ.

No , I don't think, you can search "removed packages".

Suggest : Save a file with the installed packages,
as often as you like :

rpm -qa | sort > rpms`date '+%Y-%m-%d-%T'`

.....
 
Old 01-26-2010, 01:35 PM   #4
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
I have been meaning to setup a CentOS (RHEL) Virtual machine. I will do that now and try some things to see if I can answer your question.
 
Old 01-26-2010, 02:13 PM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
/var/log/rpmpkgs* or /var/log/up2date* might help
 
Old 01-26-2010, 06:20 PM   #6
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
well first thing I notice is CentOS uses yum, so the only log is /var/log/yum.log. Might be a bit of difference from RHEL.
 
Old 01-26-2010, 06:56 PM   #7
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
RHEL/CentOS switched from up2date to yum at version 5.
 
  


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
Dropline Gnome removed packages mirror_man Slackware 8 02-20-2007 07:12 PM
Aptitude has The following packages are unused and will be REMOVED sixerjman Linux - Software 1 01-05-2006 05:36 PM
Mozilla packages to be removed satimis Linux - General 6 04-10-2005 07:48 PM
How are unused packages safely removed? oily_rags SUSE / openSUSE 2 03-26-2005 06:18 PM
dselect, removed necessary packages accidently eggsally Debian 3 06-02-2004 03:46 PM

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

All times are GMT -5. The time now is 07:14 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration