List all installed rpm packages and it’s size

Jun 03

Virtual Private Server disk space are usually limited so it’s always good to know how much space on the hard drive takes some rpm package. You can delete it later – you will save your disk space and of course some bandwidth if updates are released later on.

rpm -qa –qf ‘%10{SIZE}\t%{NAME}\n’ | sort -k1,1n

This applies to Linux environment servers only

3 Responses to “List all installed rpm packages and it’s size”

  1. This command should be:

    rpm -qa –queryformat=”%10{SIZE}\t%{NAME}\n” | sort -k1,1n

  2. NOTE: blog is editing entries, the parameter queryformat as two dashes in front. The queryformat value is encapsulated in standard double quotes.

  3. The articles you have on your website are always so enjoyable to read. Good work, and I will be returning often.

Leave a Reply