[Yum] '--queryformat' option for yum 'groupinfo' and other yum commands ??

Jim Perrin jperrin at gmail.com
Thu Apr 6 01:01:34 UTC 2006

On 4/5/06, Robinson Tiemuqinke <hahaha_30k at yahoo.com> wrote:
> Hi,
>  Newbie questions: Any one know if there is an yum
> option similar to '--queryformat' for rpm? I ask this
> because on x86_64 platform it is too difficult to
> figure out whether a rpm reported by yum is x86_64 or
> i[3456]86.

create a ~/.rpmmacros file with the contents:
%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}

This will show you the arch when you query rpm and yum.
For example:
[jperrin at insanity ~]$ rpm -q httpd

Any sufficiently advanced technology is indistinguishable from magic.
-Arthur C. Clarke

More information about the Yum mailing list