[CentOS] OT - RPM queries [was Re: Firefox, Flash and Java on CentOS 4.1 x86-64]
Karanbir Singh
Mail-Lists at karan.org
Fri Aug 12 15:21:02 UTC 2005
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
More information about the CentOS
mailing list