Circa 2001-Feb-24 15:11:49 -0500 dixit Werner:

: I know which architecture packages I have on my Linux box, but I would
: like to know how I can get rpm to tell me for a specific package if
: it's an i386 or an i686 package.

To do this only once:

  rpm -q  --qf '%6{ARCH}: %{NAME}-%{VERSION}-%{RELEASE}\n' name1 name2 ...
  
To be able to do it again:

  echo >>~/.popt \
  rpm alias --arch --qf '%7{ARCH}: %{NAME}-%{VERSION}-%{RELEASE}\n'
  
and then:

  rpm -q --arch name1 name2 ...

or:

  rpm -qa --arch |egrep -i '(name1|name2|name3)'
  
-- 
jim knoble | [EMAIL PROTECTED] | http://www.jmknoble.cx/



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to