Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

comparing two rpms with same name

422 views
Skip to first unread message

Nagrik

unread,
Nov 9, 2010, 6:30:57 PM11/9/10
to
Hello Group,

I want to compare two rpms having the same name and find out if they
are different in terms of contents. I am building these rpms locally
and it so happens the timings of those two rpms are different and thus
the following commands do produce "diff" results.

rpm -qlvp rpm1 > list1
rpm -qlvp rpm2 > list2

diff list1 list2

shows that they are different, although the contents of both rpms are
same, but built at different times.

All I want to find out if two rpms are different in contents and not
in times when they were built.

Can someone please tell me the right command.

Thanks in advance.

nagrik

Michal Jaegermann

unread,
Nov 12, 2010, 2:25:34 PM11/12/10
to
Nagrik <vna...@gmail.com> wrote:
>
> All I want to find out if two rpms are different in contents and not
> in times when they were built.

Explain clearly what for you means "different in contents" and after
that you will likely have a solution yourself. For example: if you care
only about files and their sizes then filter out only those elements
from an output of "rpm -lv ..." and compare results. Piping through
"awk '{print $5, $NF}'", say - but this is not the only way for that goal,
will do filtering above. If you mean something else then apply a suitable
transform to get what you desire.

Michal

0 new messages