* [gentoo-user] Does portage keep a copy of the file which it installs in the system
@ 2008-11-05 7:20 Lorenzu Hewa, Gayan Neomal
2008-11-05 7:32 ` Alan McKinnon
2008-11-05 8:29 ` Daniel Troeder
0 siblings, 2 replies; 8+ messages in thread
From: Lorenzu Hewa, Gayan Neomal @ 2008-11-05 7:20 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2009 bytes --]
Hi,
Does portage keep a copy of the file which it installs in the system?
Because after the intial installation the gentoo system only contains
few packages and it takes up about 2.5 GB ... Where other distro's like
slackware would take up 2.5 GB for every thing with out KDE or Gnome .
Where should I look for information ...
Thanks & Regards,
Gayan Lorenzu Hewa | Sub Officer | Wholesale Banking Corporate Service
Center | Standard Chartered Bank
*: 0115-397335*: 0773-652003 6: 0115-397337 *:
GayanNeomal.LorenzuHewa@standardchartered.com
This email and any attachments are confidential and may also be privileged. If you are not the addressee, do not disclose, copy, circulate or in any other way use or rely on the information contained in this email or any attachments. If received in error, notify the sender immediately and delete this email and any attachments from your system. Emails cannot be guaranteed to be secure or error free as the message and any attachments could be intercepted, corrupted, lost, delayed, incomplete or amended. Standard Chartered PLC and its subsidiaries do not accept liability for damage caused by this email or any attachments and may monitor email traffic.
Standard Chartered PLC is incorporated in England with limited liability under company number 966425 and has its registered office at 1 Aldermanbury Square, London, EC2V 7SB.
Standard Chartered Bank ("SCB") is incorporated in England with limited liability by Royal Charter 1853, under reference ZC18. The Principal Office of SCB is situated in England at 1 Aldermanbury Square, London EC2V 7SB. In the United Kingdom, SCB is authorised and regulated by the Financial Services Authority under FSA register number 114276.
If you are receiving this email from SCB outside the UK, please click http://www.standardchartered.com/global/email_disclaimer.html to refer to the information on other jurisdictions.
\r
[-- Attachment #2: Type: text/html, Size: 8397 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Does portage keep a copy of the file which it installs in the system
2008-11-05 7:20 [gentoo-user] Does portage keep a copy of the file which it installs in the system Lorenzu Hewa, Gayan Neomal
@ 2008-11-05 7:32 ` Alan McKinnon
2008-11-05 8:29 ` Daniel Troeder
1 sibling, 0 replies; 8+ messages in thread
From: Alan McKinnon @ 2008-11-05 7:32 UTC (permalink / raw
To: gentoo-user
On Wednesday 05 November 2008 09:20:44 Lorenzu Hewa, Gayan Neomal wrote:
> Hi,
>
>
>
> Does portage keep a copy of the file which it installs in the system?
> Because after the intial installation the gentoo system only contains
> few packages and it takes up about 2.5 GB ... Where other distro's like
> slackware would take up 2.5 GB for every thing with out KDE or Gnome .
Use df, du and such tools to figure it out for yourself.
The biggest directory is usually distfiles which contains theoriginal sources
portage unpacked to build the package
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Does portage keep a copy of the file which it installs in the system
2008-11-05 7:20 [gentoo-user] Does portage keep a copy of the file which it installs in the system Lorenzu Hewa, Gayan Neomal
2008-11-05 7:32 ` Alan McKinnon
@ 2008-11-05 8:29 ` Daniel Troeder
2008-11-05 16:26 ` Volker Armin Hemmann
1 sibling, 1 reply; 8+ messages in thread
From: Daniel Troeder @ 2008-11-05 8:29 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1530 bytes --]
Am Mittwoch, den 05.11.2008, 12:50 +0530 schrieb Lorenzu Hewa, Gayan
Neomal:
> Does portage keep a copy of the file which it installs in the system?
Yes: /var/db/pkg (/var/db/pkg/*/*/CONTENTS)
The information in /var/db/pkg is more nicely accessed through the
utilities in app-portage/portage-utils and app-portage/gentoolkit.
Install theses packages and play with the tools - it will make your
gentoo-life a lot nicer :)
A must (at least for me) is also app-portage/eix to access the
information in /usr/portage quickly.
> Because after the intial installation the gentoo system only contains
> few packages and it takes up about 2.5 GB … Where other distro’s like
> slackware would take up 2.5 GB for every thing with out KDE or
> Gnome .
1st:
# rm /usr/portage/distfiles/*
Then: Gentoo installs (in binary distros terms) all "*-dev" packages
(all libs and headers), as it needs this for compiling - that blows the
system a lot.
In my system (GNOME, lots of servers, development software) the
installed package DB (/var/db/pkg) is about 200 MB.
The portage tree (/usr/portage) is about 500 MB for everybody...
> Where should I look for information …
* Use 'qsize' from app-portage/portage-utils to find out package sizes.
* Use 'du -sm /* /*/* | sort -n' to take a first peak at how files are
distributed on your disk.
Bye,
Daniel
--
PGP key: http://pgpkeys.pca.dfn.de/pks/lookup?search=0xBB9D4887&op=get
# gpg --recv-keys --keyserver hkp://subkeys.pgp.net 0xBB9D4887
[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Does portage keep a copy of the file which it installs in the system
2008-11-05 8:29 ` Daniel Troeder
@ 2008-11-05 16:26 ` Volker Armin Hemmann
2008-11-05 17:45 ` Alan McKinnon
0 siblings, 1 reply; 8+ messages in thread
From: Volker Armin Hemmann @ 2008-11-05 16:26 UTC (permalink / raw
To: gentoo-user
On Mittwoch 05 November 2008, Daniel Troeder wrote:
> Am Mittwoch, den 05.11.2008, 12:50 +0530 schrieb Lorenzu Hewa, Gayan
>
> Neomal:
> > Does portage keep a copy of the file which it installs in the system?
>
> Yes: /var/db/pkg (/var/db/pkg/*/*/CONTENTS)
no, that is just a LIST.
.
>
> > Because after the intial installation the gentoo system only contains
> > few packages and it takes up about 2.5 GB … Where other distro’s like
> > slackware would take up 2.5 GB for every thing with out KDE or
> > Gnome .
>
> Then: Gentoo installs (in binary distros terms) all "*-dev" packages
> (all libs and headers), as it needs this for compiling - that blows the
> system a lot.
a bit ;) but yes.
> In my system (GNOME, lots of servers, development software) the
> installed package DB (/var/db/pkg) is about 200 MB.
> The portage tree (/usr/portage) is about 500 MB for everybody...
>
> > Where should I look for information …
>
> * Use 'qsize' from app-portage/portage-utils to find out package sizes.
> * Use 'du -sm /* /*/* | sort -n' to take a first peak at how files are
> distributed on your disk.
and don't forget that du is lying - a lot.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Does portage keep a copy of the file which it installs in the system
2008-11-05 16:26 ` Volker Armin Hemmann
@ 2008-11-05 17:45 ` Alan McKinnon
2008-11-05 18:39 ` Volker Armin Hemmann
0 siblings, 1 reply; 8+ messages in thread
From: Alan McKinnon @ 2008-11-05 17:45 UTC (permalink / raw
To: gentoo-user
On Wednesday 05 November 2008 18:26:35 Volker Armin Hemmann wrote:
> > * Use 'qsize' from app-portage/portage-utils to find out package sizes.
> > * Use 'du -sm /* /*/* | sort -n' to take a first peak at how files are
> > distributed on your disk.
>
> and don't forget that du is lying - a lot.
No it doesn't, du is very exact.
It's just exact in ways the user seldom expects it be exact in. Especially
when they have the block size wrong, or don't understand SI units (that's OK,
nobody understands SI units) or include symlinks, or don't grok sparse
files...
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Does portage keep a copy of the file which it installs in the system
2008-11-05 17:45 ` Alan McKinnon
@ 2008-11-05 18:39 ` Volker Armin Hemmann
2008-11-05 21:40 ` Alan McKinnon
0 siblings, 1 reply; 8+ messages in thread
From: Volker Armin Hemmann @ 2008-11-05 18:39 UTC (permalink / raw
To: gentoo-user
On Mittwoch 05 November 2008, Alan McKinnon wrote:
> On Wednesday 05 November 2008 18:26:35 Volker Armin Hemmann wrote:
> > > * Use 'qsize' from app-portage/portage-utils to find out package sizes.
> > > * Use 'du -sm /* /*/* | sort -n' to take a first peak at how files are
> > > distributed on your disk.
> >
> > and don't forget that du is lying - a lot.
>
> No it doesn't, du is very exact.
nope, it is lying.
du -h /var
31G /var
df -h
/dev/md2 18G 5,4G 13G 31% /var
as I said - lying ;)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Does portage keep a copy of the file which it installs in the system
2008-11-05 18:39 ` Volker Armin Hemmann
@ 2008-11-05 21:40 ` Alan McKinnon
2008-11-05 22:55 ` Volker Armin Hemmann
0 siblings, 1 reply; 8+ messages in thread
From: Alan McKinnon @ 2008-11-05 21:40 UTC (permalink / raw
To: gentoo-user
On Wednesday 05 November 2008 20:39:54 Volker Armin Hemmann wrote:
> On Mittwoch 05 November 2008, Alan McKinnon wrote:
> > On Wednesday 05 November 2008 18:26:35 Volker Armin Hemmann wrote:
> > > > * Use 'qsize' from app-portage/portage-utils to find out package
> > > > sizes. * Use 'du -sm /* /*/* | sort -n' to take a first peak at how
> > > > files are distributed on your disk.
> > >
> > > and don't forget that du is lying - a lot.
> >
> > No it doesn't, du is very exact.
>
> nope, it is lying.
No it's not :-)
Be prepared to find out stuff:
> du -h /var
>
> 31G /var
This is the total size of all files below /var, measured as actual allocatable
disk space consumed, not the sum of the size of all files.
> df -h
> /dev/md2 18G 5,4G 13G 31% /var
This is the *filesystem* mounted at /var, the data comes from it's superblock
>
> as I said - lying ;)
I say you have other filesystems mounted below /var somewhere, about 25G worth
of stuff. Or, you have a 25G sparse file :-)
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Does portage keep a copy of the file which it installs in the system
2008-11-05 21:40 ` Alan McKinnon
@ 2008-11-05 22:55 ` Volker Armin Hemmann
0 siblings, 0 replies; 8+ messages in thread
From: Volker Armin Hemmann @ 2008-11-05 22:55 UTC (permalink / raw
To: gentoo-user
On Mittwoch 05 November 2008, Alan McKinnon wrote:
> On Wednesday 05 November 2008 20:39:54 Volker Armin Hemmann wrote:
> > On Mittwoch 05 November 2008, Alan McKinnon wrote:
> > > On Wednesday 05 November 2008 18:26:35 Volker Armin Hemmann wrote:
> > > > > * Use 'qsize' from app-portage/portage-utils to find out package
> > > > > sizes. * Use 'du -sm /* /*/* | sort -n' to take a first peak at how
> > > > > files are distributed on your disk.
> > > >
> > > > and don't forget that du is lying - a lot.
> > >
> > > No it doesn't, du is very exact.
> >
> > nope, it is lying.
>
> No it's not :-)
>
> Be prepared to find out stuff:
> > du -h /var
> >
> > 31G /var
>
> This is the total size of all files below /var, measured as actual
> allocatable disk space consumed, not the sum of the size of all files.
>
> > df -h
> > /dev/md2 18G 5,4G 13G 31% /var
>
> This is the *filesystem* mounted at /var, the data comes from it's
> superblock
>
> > as I said - lying ;)
>
> I say you have other filesystems mounted below /var somewhere, about 25G
> worth of stuff. Or, you have a 25G sparse file :-)
nope. I do have a 2gb tempfs mounted at /var/tmp/portage, but then I would get
20GB overall. Also the partition size is 18gb. So du is lying. Well, the fact,
that I am using a filesystem with compression, makes du lying even worse *fg*.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-11-05 22:55 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-05 7:20 [gentoo-user] Does portage keep a copy of the file which it installs in the system Lorenzu Hewa, Gayan Neomal
2008-11-05 7:32 ` Alan McKinnon
2008-11-05 8:29 ` Daniel Troeder
2008-11-05 16:26 ` Volker Armin Hemmann
2008-11-05 17:45 ` Alan McKinnon
2008-11-05 18:39 ` Volker Armin Hemmann
2008-11-05 21:40 ` Alan McKinnon
2008-11-05 22:55 ` Volker Armin Hemmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox