Bug 172371 - rpm should provide easier way of displaying arch of packages
Summary: rpm should provide easier way of displaying arch of packages
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: rpm
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-11-03 13:38 UTC by Greg Forte
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-11-03 18:37:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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/


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