How can I determine the architecture of an installed package?

Updated -

A query with the rpm -q command will not display architecture by default. Use rpm with these options to view the architecture:

rpm -q --queryformat="%{n}-%{v}-%{r}.%{arch}.rpm\\n" <package name>

Replace <package name> with the name of the package that needs to be queried. If unsure of the package name, the same <...>

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content