OT - RPM queries [was Re: Firefox, Flash and Java on CentOS 4.1 x86-64]

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



Phil Schaffner wrote:
> On Fri, 2005-08-12 at 02:29 -0500, Bryan J. Smith wrote:
> 
>>Does anyone know how to easily list the arch of packages on a system?
>>I can't seem to figure out something from "rpm" at the CLI.
> 
> 
> I have the following in ~/.rpmmacros:
> 
> # Change default RPM query format to show ARCH
> %_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}
> 
> While OT - A sometimes-useful variant:
> $ rpm -qa --queryformat='%{epoch}:%{name}-%{version}-%{release}.%{arch}\n' aspell
> 12:aspell-0.50.5-3.fc3.x86_64
> 12:aspell-0.50.5-3.fc3.i386
> 

If you are looking to track Origin of a package, the %{vendor} and/or 
%{packager} tag might come in handy.

- KB
-- 
Karanbir Singh   : http://www.karan.org/
GnuPG Public Key : http://www.karan.org/publickey.asc

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux