Description of problem:
Asking for information on a package doesn't say what architecture(s) they are.
For instance, here (x86_64) "rpm -qi glibc" shows me information twice (for x86_64 and i386), but there is no way of distinguising among them.
Version-Release number of selected component (if applicable):
rpm-4.6.0-0.rc3.1.x86_64
Retrofit displaying arch in default query format by
putting this macro into into /etc/rpm/macros:
#
# Default headerSprintf() output format string for rpm -qa
#
# XXX Note: escaped %% for use in headerSprintf()
%_query_all_fmt %%{name}-%%{version}-%%{release}%%|arch?{.%%{arch}}:{}|
Yes its is already the default in rpm.
Append ".x86_64" or ".i386" to the query/verify args to distinguish.
Yes, I know how to ask for one or the other package. What I want is to be able to ask:
$ rpm -qi some-package-name
and being told not only size and installation date and ... but also the architecture of the package. This is basic information about the package, so when asking for information I should get it.
Could be important when asking say:
$ rpm -qif /some/misterious/file
(but then again, if that file is shared by packages for e.g. i386 and x86_64...)
This is configurable, add an Architecture: field to /usr/lib/rpm/rpmpopt*. Not hard.
It likely should not be changed in --info however, there is definite risk of
breaking user scripts, and its not clear (to me) the gain is worth the pain.
But I'm sure Panu will do as he pleases.
This has been fixed upstream (see bug 575499) but there's no plan to backport it to existing releases as the -qi format has been completely changed. Fedora will get it through the next rpm major version, presumably in Fedora 15.
Description of problem:
Asking for information on a package doesn't say what architecture(s) they are.
For instance, here (x86_64) "rpm -qi glibc" shows me information twice (for x86_64 and i386), but there is no way of distinguising among them.
Version-Release number of selected component (if applicable): 0-0.rc3. 1.x86_64
rpm-4.6.
How reproducible:
Always
Steps to Reproduce:
1. rpm -qi packagename
2.
3.
Actual results:
Expected results:
Additional info: