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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.