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:
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}
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?
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/