[TriLUG] Comparing RPM -qa / an easy way?
Wing D Lizard
wingedlizard at nc.rr.com
Tue Jun 26 13:51:44 EDT 2007
first$ rpm -qa | sort > first_computer.lst
second$ rpm -qa | sort > second_computer.lst
$ diff first_computer.lst second_computer.lst
btw with emacs you can run a shell on both boxes, remove the extra
lines, then use
`Alt-x ediff-buffers` ( like vimdiff, only cooler) to see the differences.
b²
Andrew Ball wrote:
> On 6/25/07, Carl Crider <c.crider at gmail.com> wrote:
>
>> I need to compare 2 RPM's:
>>
>> example:
>> [Box A] I have the developer's RPM that compiles
>>
>> [Box B] I have "our" RPM that will not compile
>>
>>
>>> I need to compare the list from A & B, to see what is installed
>>>
>> on "Box A" that isn't installed on "Box B" ... and visa-versa.
>>
>
>
> You mean the list of files installed by the RPM?
>
> rpm -qp --filesbypkg <rpm_file>
>
> Peace,
> Andrew
>
>
> Is there an easy way to compare the 2? DO I need to write a script
>
>> or is there one out there already?
>>
>> TIA,
>>
>> Carl
>> --
>> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
>> TriLUG Organizational FAQ : http://trilug.org/faq/
>> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>>
>>
>
>
>
>
More information about the TriLUG
mailing list