How can a modify my rpm search to show architecture?

Updated -

A typical RPM search only shows if a package is installed or not. The following is one such search:

rpm -qa glibc

This will return if the package glibc is installed on the system.

The search can be easily modified to show the architecture of the installed packages. The following command will show all packages and their architecture:


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