[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rpm: which arch package is installed?



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 | jmknoble@jmknoble.cx | http://www.jmknoble.cx/





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []