How to determine which architecture of an RPM is installed?

While playing with Oracle Linux (OEL) and Oracle RDBMS, we waded through the lengthy install guide for Oracle. We had decided to install the 64 bit (x86_64) version of Oracle. The install guide showed that several 32 bit RPMs (libraries) are still required. Of course, you can't use the CD for this. Fortunately, the guide describes in (albeit lengthy) detail what to do, where to find the RPMs and so on.
At point in time, we needed to know which architecture of a certain RPM was installed: 32 bit or 64 bit? Or both?
An Oracle consultant provided us with a handy option for the rpm command to find out:
rpm -qa <RPM_NAME> --queryformat "%{NAME}-%{VERSION}.%{RELEASE} (%{ARCH})\n"

No comments: