Bug 172371 - rpm should provide easier way of displaying arch of packages
rpm should provide easier way of displaying arch of packages
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: rpm (Show other bugs)
4.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-11-03 08:38 EST by Greg Forte
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-11-03 13:37:34 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Greg Forte 2005-11-03 08:38:11 EST
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 13:37:34 EST
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 13:54:42 EST
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 14:49:15 EST
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/

Note You need to log in before you can comment on or make changes to this bug.