This works on any system that uses apt-get.

This command shows the size of the installed packages:

dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n' | sort -k 2 -n | grep -v deinstall | awk '{printf "%.3f MB \t %s\n", $2/(1024), $1}' | tail -n 30

You can change the tail -n 30 to any nomber to get more or less packages listed.

If you enjoyed this post, make sure you subscribe to my RSS feed!

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2011 JCA - Tech Blog Suffusion theme by Sayontan Sinha