How to query rpm DB to find only i586 rpms ?

Hi.

Is it possible to query the rpm db (using any command line / gui) to find out which RPMS’s I have installed that are i586 architecture ?

I am running amd64 opensuse 11.1 but have installed some i586 rpms through yast.

Anyone know how to find out which ones without checking the version numbers of every single installed rpm (my present method for checking)

I know that some rpms have 32bit in the name however you can also install the i586 version of the rpm (i.e flash player)

I can’t find out using

rpm -qva

That doesn’t give the architecture

Cheers

rpm -qa --queryformat "%{name} - %{arch}
" | grep “i586$”

Thanks thats exactly what i needed

Cheers!