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



    Add a comment to this post:

    Your name:

    Your email: Email me new comments on this post
      (Your email will not be published on this site, and will only be used to contact you directly with a reply to your comment if needed. Oh, and we'll use it to send you new comments on this post it you selected that checkbox.)


    Your website:

    Comments: