LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RPM Report / Comparison tool (https://www.linuxquestions.org/questions/linux-newbie-8/rpm-report-comparison-tool-580838/)

muz_j 08-29-2007 10:23 PM

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.

brianmcgee 08-30-2007 01:15 AM

comm is the tool of choice.

chrism01 08-30-2007 09:32 PM

man sort
man uniq


All times are GMT -5. The time now is 08:58 PM.