Hi all,

I'd like to see package's arch when doing rpm -qa. I though it
was not possible, but when talking to other admin he sent me
this output:

> [root@wn060 ~]# rpm -qa | grep compat-gcc-34
> compat-gcc-34-g77-3.4.6-4.x86_64
> compat-gcc-34-c++-3.4.6-4.x86_64
> compat-gcc-34-3.4.6-4.x86_64

> [root@wn060 ~]# rpm --version
> RPM version 4.4.2.3

> [root@wn060 ~]# yum --version
> 3.2.19

> [root@wn060 ~]# cat /etc/redhat-release
> Scientific Linux SL release 5.3 (Boron)

He does not know why he see that output.

Now I'm on SL 5.3 but rpm does not show package arch:

# rpm -qa|grep compat-gcc-34
compat-gcc-34-g77-3.4.6-4
compat-gcc-34-3.4.6-4
compat-gcc-34-3.4.6-4
compat-gcc-34-g77-3.4.6-4
compat-gcc-34-c++-3.4.6-4
compat-gcc-34-c++-3.4.6-4

And I have same versions as him:

[root@td006 ~]# rpm --version
RPM version 4.4.2.3
[root@td006 ~]# yum --version
3.2.19
# cat /etc/redhat-release
Scientific Linux SL release 5.3 (Boron)

Anyone could help to get that output?

rpm should do it with no other options specified... The reason for that
is that we use puppet for configuring our nodes, and it uses rpm for
querying packages installed. If rpm does not answer with arch rpm does
not know if the package is 386 or 64 bits....

TIA,
Arnau