How to find architecture of rpms installed?

Run the following command to find the architecture of all rpms installed on your server:

rpm -qa --qf "%{n}-%{v}-%{r}.%{arch}\n"

If you wish to check for any particular rpm, say curl, run the below command:

rpm -qa --qf "%{n}-%{v}-%{r}.%{arch}\n" | grep -i curl

 

Leave a Reply

Your email address will not be published.