[WBEL-users] Comparing what is installed

Johnny Hughes mailing-lists@hughesjr.com
Tue, 28 Dec 2004 09:21:25 -0600 (CST)


> As I just said, I completed my second install.  Wiser now.
>
> Is there someway to compare what services I have on the first install with
> the second (note, that there is no printer yet on either, but there is
> network connectivity)?
>
>
 You can do a command like this (from a terminal window) to create a text
file that contains all packages installed on your systems:

rpm -qa | sort > system1.txt

on the other machine do:

rpm -qa | sort > system2.txt

now copy both files to one machine or the other (I would use sftp)

now from a directory that contains both text files, do the command:

diff --side-by-side system1.txt system2.txt > system-diff.txt

That will produce a list that looks similar to this:

automake-1.6.3-5                                           automake-1.6.3-5
                                                         > autorun-3.10-1
ethereal-0.10.5-0.30E.2                                   
ethereal-0.10.5-0.30E.2
ethereal-gnome-0.10.5-0.30E.2                            <
gd-1.8.4-12.3.1                                          | gd-1.8.4-12


Items that have > are on #2 and not on #1 ... items that have < are on #1
and not on #2... items that have | are different versions on each machine.
Items that are blank are the same on each machine. (That is just an
example from a large list on both machines)