[lug] need a way to compare capabilities of arbitrarily different rpm-based distributions
qqq1one @yahoo.com
qqq1one at yahoo.com
Mon Mar 25 21:26:33 MST 2002
Hey that works nice. Thanks. I combined it with find to get every
package on a CD like so:
find /mnt/cdrom -name "*.rpm" | xargs rpm -qp --qf '%{name}\n'
--- Sean Reifschneider <jafo at tummy.com> wrote:
> 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
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/
More information about the LUG
mailing list