Listing Full RPM Package Name

To get a full list RPM name, like the RPM file name use the Query Format option (–qf or –queryformat).

This is useful in comparing 2 systems, seeing 32 bit and 64 bit packages and finding the RPMs.

This lists the packages:

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

To get a list of with the .rpm extention

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

Leave a Reply

Your email address will not be published. Required fields are marked *