Gentoo Archives: gentoo-user

From: Volker Armin Hemmann <volker.armin.hemmann@××××××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Does portage keep a copy of the file which it installs in the system
Date: Wed, 05 Nov 2008 22:55:12
Message-Id: 200811052355.04724.volker.armin.hemmann@tu-clausthal.de
In Reply to: Re: [gentoo-user] Does portage keep a copy of the file which it installs in the system by Alan McKinnon
1 On Mittwoch 05 November 2008, Alan McKinnon wrote:
2 > On Wednesday 05 November 2008 20:39:54 Volker Armin Hemmann wrote:
3 > > On Mittwoch 05 November 2008, Alan McKinnon wrote:
4 > > > On Wednesday 05 November 2008 18:26:35 Volker Armin Hemmann wrote:
5 > > > > > * Use 'qsize' from app-portage/portage-utils to find out package
6 > > > > > sizes. * Use 'du -sm /* /*/* | sort -n' to take a first peak at how
7 > > > > > files are distributed on your disk.
8 > > > >
9 > > > > and don't forget that du is lying - a lot.
10 > > >
11 > > > No it doesn't, du is very exact.
12 > >
13 > > nope, it is lying.
14 >
15 > No it's not :-)
16 >
17 > Be prepared to find out stuff:
18 > > du -h /var
19 > >
20 > > 31G /var
21 >
22 > This is the total size of all files below /var, measured as actual
23 > allocatable disk space consumed, not the sum of the size of all files.
24 >
25 > > df -h
26 > > /dev/md2 18G 5,4G 13G 31% /var
27 >
28 > This is the *filesystem* mounted at /var, the data comes from it's
29 > superblock
30 >
31 > > as I said - lying ;)
32 >
33 > I say you have other filesystems mounted below /var somewhere, about 25G
34 > worth of stuff. Or, you have a 25G sparse file :-)
35
36 nope. I do have a 2gb tempfs mounted at /var/tmp/portage, but then I would get
37 20GB overall. Also the partition size is 18gb. So du is lying. Well, the fact,
38 that I am using a filesystem with compression, makes du lying even worse *fg*.