Here’s another useful what to query RPM’s installed on your machine. I had the need to see not only the rpm’s installed on the machine but what the size of each package was, so here’s the query I used
rpm -qa --queryformat='%{SIZE} %{NAME}-%{VERSION}-%{ARCH}\n'
You can then sort the output based on size
rpm -qa --queryformat='%{SIZE} %{NAME}-%{VERSION}-%{ARCH}\n' | sort -n
