LinuxQuestions.org
Register a domain and help support LQ
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 08-29-2007, 11:23 PM   #1
muz_j
LQ Newbie
 
Registered: Aug 2007
Location: Wellington, New Zealand
Distribution: RHEL 5
Posts: 2

Rep: Reputation: 0
RPM Report / Comparison tool


Hi Folks,

Apologies if this has been asked before in the past - I've done a couple of searches and I haven't turned up much.


Q) I would like to know if anyone can point me towards any tools, scripts or code that would allow me to compare and report on the differences between 2 dumped lists of RPMs installed on to 2 different Red Hat Enterprise Linux installs ???

The dumped files have been created using a simple "rpm -qa >filename.txt"

The dumped lists of RPM files do not necessarily contain the same number of RPMs in each. Let's say the first is around 950 RPMs and the second is around 800.

>>> What I want is a summary list of RPMs that are installed on server #2 that are not on server #1 and vice versa. <<<

Up until now I have been copying the dump lists off the servers, putting them into a spreadsheet, sorting them and then going through doing a comparison manually - which takes around an hour. I'd prefer to be doing something else with my time, so I'm now looking for another solution.

Currently my thoughts are basically - I'm either going to have a quick hunt around the www for some form of reporting tool or script or I'll create my own script using either VBscript (please forgive the MS reference) or AWK.

Anyone got a better method or idea?


Many thanks,
Murray.
 
Old 08-30-2007, 02:15 AM   #2
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 39
comm is the tool of choice.
 
Old 08-30-2007, 10:32 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
man sort
man uniq
 
  


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
Bug report tool in Ubuntu 6.10 pppaaarrrkkk Linux - Newbie 0 07-25-2007 09:37 AM
Looking for directory tree comparison tool joeljkp Linux - Server 5 02-22-2007 01:44 PM
rpm and installed comparison. geelsu Linux - Newbie 1 06-07-2004 05:46 PM
Tool to report on Kernel options? dkraut Linux - General 1 03-01-2004 05:40 PM
Gimp Tool Kit gchar Widget comparison... chewysplace Programming 2 01-30-2004 05:30 PM


All times are GMT -5. The time now is 02:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration