How to sort installed packages in Ubuntu with respect to the size (in kB) they occupy on disk :
dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n' | sort -k2 -n
Nothing fancy. Just a scratchboard for Open Source Geospatial manipulations. Involves (although not limited to) Linux, R, gdal, Quantum GIS, Geoserver etc.
dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n' | sort -k2 -n