On Tue, 2005-06-28 at 08:10 -0700, Shahms King wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The default rpm query format of %{name}-%{version}-%{release} is less
than optimal on x86_64 where the x86_64 and i386 versions of some
packages are installed. I've modified my local rpm macros by creating
"/etc/rpm/macros.local" with:
%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}
which solves the problem on my computer, but has any thought been given
to making this the default, at least on x86_64 (or other multi-lib archs)?
Add the following to ~/.popt
rpm alias --nvra --qf "%{n}-%{v}-%{r}.%{arch}\n"
and then rpm -q --nvra will do what you want, without breaking random
scripts.
--
Nicholas Miell <nmiell(a)comcast.net>