Bug 172371

Summary: rpm should provide easier way of displaying arch of packages
Product: Red Hat Enterprise Linux 4 Reporter: Greg Forte <gforte>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED NOTABUG QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-11-03 18:37:34 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 Greg Forte 2005-11-03 13:38:11 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

Description of problem:
on x86_64 installs, it's often necessary to also install the 32-bit versions of some packages to support legacy code.  Currently the only way to make rpm display architecture info for a package (that I've found) is to use 
"-qf [long_complicated_format_string]".  rpm should definitely report the architecture when the "-q -i [package-name]" options are used, and it'd be handy if "-q -a" either reported the architecture by default, or if there was a much easier switch (e.g. "-q -a --arch") that could be used to make it do so.

Version-Release number of selected component (if applicable):
all

How reproducible:
Always

Steps to Reproduce:
1. `rpm -qi [package_name]`
2. look, no architecture info!
3. `rpm -q -a`
4. same thing!  

Additional info:

Comment 1 Paul Nasrat 2005-11-03 18:37:34 UTC
rpm --qf '%{name}-%{version}-%{release}.%{arch}\n' -q foo

You can also change the query_all_fmt by setting ~/.rpmmacros or
/etc/rpm/macros.query to contain:

%_query_all_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}



Comment 2 Greg Forte 2005-11-03 18:54:42 UTC
that's all well and good, but doesn't address my other complaint - why doesn't
the 'info' option display a vital piece of information about the package?


Comment 3 Paul Nasrat 2005-11-03 19:49:15 UTC
Changes to rpm -qi output would cause breakage to things that attempt to parse
it rather than use --queryformat/rpm-python to access the information.  The popt
alias --info can be changed in /usr/lib/rpm/rpmpopt-VER.  Should you wish this
change to go into rpm for RHEL 4, please file a support request
https://www.redhat.com/apps/support/ as documented on the front page of
https://bugzilla.redhat.com/