Red Hat Bugzilla – Bug 475993
"rpm -qi" doesn't show architecture
Last modified: 2010-06-29 06:09:16 EDT
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):
Steps to Reproduce:
1. rpm -qi packagename
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()
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 bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.
More information and reason for this action is here:
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.