Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-29-2007, 10:23 PM   #1
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,
Old 08-30-2007, 01:15 AM   #2
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, 09:32 PM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,406

Rep: Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396
man sort
man uniq


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

All times are GMT -5. The time now is 11:12 PM.

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