[CentOS] Why are multiple architecture rpms installed?

Wed Mar 4 13:18:55 UTC 2009
Akemi Yagi <amyagi at gmail.com>

On Wed, Mar 4, 2009 at 4:47 AM, Marten Lehmann <lehmann at cnm.de> wrote:
> Hello,
>
> I noticed, that whenever I install a package on CentOS 5.x, rpms for
> multiple architectures are installed:

See, for example, for a solution:

http://www.centos.org/modules/newbb/viewtopic.php?topic_id=17812

> Thats pretty annoying, because an "rpm -qa | grep sqlite" only shows the
> package name, not the arch:
>
> sqlite-3.3.6-2
> sqlite-devel-3.3.6-2
> sqlite-3.3.6-2
> sqlite-devel-3.3.6-2

Try adding the following line to ~/.rpmmacros

%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}

This way you can see the arch as well.

Akemi