RPM

"rpm -qi" doesn't show architecture

Bug #638598 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
New
Undecided
Unassigned
Fedora
Won't Fix
Medium

Bug Description

tracker

Tags: arch fedora query
Revision history for this message
In , Horst (horst-redhat-bugs) wrote :

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):
rpm-4.6.0-0.rc3.1.x86_64

How reproducible:
Always

Steps to Reproduce:
1. rpm -qi packagename
2.
3.

Actual results:

Expected results:

Additional info:

Revision history for this message
In , Jeff (jeff-redhat-bugs) wrote :

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()
%_query_all_fmt %%{name}-%%{version}-%%{release}%%|arch?{.%%{arch}}:{}|

Yes its is already the default in rpm.

Append ".x86_64" or ".i386" to the query/verify args to distinguish.

Revision history for this message
In , Horst (horst-redhat-bugs) wrote :

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...)

Revision history for this message
In , Jeff (jeff-redhat-bugs) wrote :

k.

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.

Revision history for this message
In , Bug (bug-redhat-bugs) wrote :

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:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Revision history for this message
In , Panu (panu-redhat-bugs) wrote :

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.

Jeff Johnson (n3npq)
tags: added: arch fedora query
Changed in fedora:
importance: Unknown → Medium
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.