[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why so big(2)



on Tue, Aug 21, 2001 at 03:51:16PM +0100, P Kirk (patrick@enterprise-hr.com) wrote:
> My apologies for sending an attachemnt but it is only 4.1 k.  This is my
> installed list.
> 
> /dev/hda2             703M  574M   93M  86% /
> du -m /usr/        399
> du -m /usr/src/     173
> du -m /usr/share    148
> 
> du -m /home     120
> 
> I don't have anything other than samba and python installed.  How can
> /usr/share be so big?

As previously mentioned, du will summarize disk usage for you:

    $ du -sx * | sort -nr | cat -n | head -20

...will rank the 20 largest files/directories in the current directory.


> adduser install
> ae install

<232 lines deleted>

You can verify a package's installed size with the dpkg -s command:

    dpkg -s <package>

The following script will grab all your installed packages and show
their installed size, sorted and ranked by size:

    $ dpkg --get-selections |
        grep '   install' |
	awk '{print $1}' |
	xargs -n 1 dpkg -s |
	egrep '^(Package|Installed-Size):' |
	awk '{printf( "%s:  ", $2 ); getline; printf( "%s\n", $2 )}' |
	sort -k2nr |
	cat -n

This might prove useful in identifying larger packages.  My own top 20
packages are:

     1  xemacs21-basesupport:  34346
     2  tetex-base:  30995
     3  tetex-extra:  28701
     4  emacs20:  26554
     5  wordnet-base:  25616
     6  doc-linux-html:  22768
     7  mozilla-browser:  22288
     8  mozilla-browser-cvs:  21244
     9  mozilla-dev:  20188
    10  gimp-manual:  19508
    11  kdelibs3:  18992
    12  kdebase:  17920
    13  dict-gcide:  16962
    14  kernel-source-2.2.18pre21:  14964
    15  kernel-headers-2.2.18pre21:  14156
    16  kernel-source-2.2.17:  13768
    17  libc6:  12564
    18  abiword:  11601
    19  xserver-xfree86:  11372
    20  xlibs-dev:  11248

I'd suggest *not* posting your entire package selection to list in
future.

-- 
Karsten M. Self <kmself@ix.netcom.com>          http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?             There is no K5 cabal
  http://gestalt-system.sourceforge.net/               http://www.kuro5hin.org
   Free Dmitry! Boycott Adobe! Repeal the DMCA!    http://www.freesklyarov.org
Geek for Hire                        http://kmself.home.netcom.com/resume.html

Attachment: pgp8pziNjT4fL.pgp
Description: PGP signature


Reply to: