RPM: List all installed packages by size

 shell$ rpm -qa --queryformat '%10{SIZE}\t%{NAME}\n' | sort -k1,1n 

One thought on “RPM: List all installed packages by size

  1. You could append it a bit for those times when disk is full:
    $ rpm -qa –queryformat ‘%10{SIZE}\t%{NAME}\n’ | sort -k1,1n | tail | cut -f 2 | xargs rpm -e

Leave a Reply

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