List all installed rpm packages and it’s size

June 3, 2007

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.

Leave a Reply