[lug] need a way to compare capabilities of arbitrarily different rpm-based distributions

Sean Reifschneider jafo at tummy.com
Sun Mar 24 23:26:41 MST 2002


How about, for every package in your distribution, doing:

   rpm -qp --qf '%{name}\n' "$RPMFILE"

For example:

   guin:jafo$ rpm -qp --qf '%{name}\n' /tmp/python-imaging-devel-1.0-6.i386.rpm
   python-imaging-devel

So, from that you can get the name and only the name.  See the
"queryformat" section of the RPM man page for more information.

Sean
-- 
 Hell hath no fury, like a file-system scorned.  -- Sean Reifschneider, 1998
Sean Reifschneider, Inimitably Superfluous <jafo at tummy.com>
tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python



More information about the LUG mailing list