Bug 19667

Summary: rpm -qi does not show installed package architecture (e.g., i686)
Product: [Retired] Red Hat Linux Reporter: Need Real Name <dale+bz>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: dr
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-10-24 11:24:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2000-10-24 04:38:15 UTC
"rpm -qi package" gives no indication of the architecture
for which the installed package was built.  To see this, try:

rpm -qi glibc

and examine the output.  Nowhere will you be able to see
whether the installed package was *.i386.rpm or *.i686.rpm,
for example.

Granted, you can find this information via:

rpm -q --queryformat='%{ARCH}+AFw-n' glibc

but it ought to be shown by default in the general info listing.

Comment 1 Jeff Johnson 2000-12-30 19:44:46 UTC
Query the arch tag, or, if you wish, edit /usr/lib/rpm/rpmpopt-* to add a query
for the arch tag
to the popt alias that actually implements --info.
I'm unwilling to make the change in the "default" configuration because
  a) rpm -qi already exists with well defined output
  b) most users don't need to see the arch tag because ...
  c) ... most packages do not benefit in any material (i.e. no significant
performance gain) way from         changing arch  because ...
  d) ... what is really desired is to know the optflags used to compile the
package. Try looking for
      RPMTAG_OPTFLAGS rather than RPMTAG_ARCH.