| What packages are taking all my disk? |
I'm using Ubuntu here, but this would work on any Debian based distribution... I want to find out what packages are sucking up all the disk on my new laptop. So, I run:
mikal@mikal-eee:~$ dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -n
Which will give you a list of packages sorted by size when installed. In my case, removing evolution and open office ill make a big difference to my free disk space.
posted at: 16:42 | path: /linux/ubuntu | permanent link to this entry
-
#1
TimC
Using this I purged a couple of expensive crap, but found that it was reporting false positives -- some things had already been removed. I guess if you have already installed something, then remove or purged it, dpkg still knows about its Installed-Size. So this is what I used:
dpkg-query -W --showformat='${Installed-Size} ${Package} ${Status}\n' | sort -n | grep -v deinstall
-
#2
Jeff Waugh
Ooh, nice one. *bzzzzzzt-ahhh* Thanks. :-)
