How do I find out the size of Packages on my system.

Post Type: 
Tutorial

A nice shell script that will search packages installed on your machine and sort them by size. It's been tested in ubuntu but should work with any apt based system.

dpkg-query -W --showformat='${Installed-Size;10}\t${Package}\n' | sort -k1,1n

example outout

     65968      linux-image-2.6.17-10-generic
     77224      sun-java6-bin
     82504      mysql-server-5.0
    103228      wine
    112732      openoffice.org-core
    143624      netbeans5.5

niiiiiiiiiiiiiccccccccccccee!!