Showing posts with label dpkg. Show all posts
Showing posts with label dpkg. Show all posts

Friday, August 21, 2009

Sorting installed packages by size in ubuntu

(taken from snipt)

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