Gentoo Archives: gentoo-server

From: gibbonsr-ml@××××××××××××××××××.com
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] trim down portage directory
Date: Tue, 08 Apr 2008 14:58:14
Message-Id: 13381796.2871207666899925.JavaMail.root@zulu
In Reply to: Re: [gentoo-server] trim down portage directory by Brian Kroth
1 I use a combination of the suggested on my Servers. I use a a NFS mounted portdir,
2 and my exclude list is just a lit of all the KDE-*, gnome-*, xfce-*, and x11-*.
3
4 I don't use X so it seems to work pretty well, and it still keeps the re-cache time
5 to a minimal.
6
7 ----- Original Message -----
8 From: "Brian Kroth" <bpkroth@××××.edu>
9 To: "Tomasz Lutelmowski" <tomek@×××××.pl>
10 Cc: gentoo-server@l.g.o
11 Sent: Tuesday, April 8, 2008 8:43:47 AM GMT -06:00 US/Canada Central
12 Subject: Re: [gentoo-server] trim down portage directory
13
14 Tomasz Lutelmowski <tomek@×××××.pl> 2008-04-08 15:07:
15 > On Tue, 08 Apr 2008 06:51:48 -0500, Andrew Gaffney wrote
16 > > Tomasz Lutelmowski wrote:
17 > > >
18 > > > Hello,
19 > > >
20 > > > Here is one-liner which can be helpful if you want to trim down your gentoo
21 > > > installation, particulary /usr/portage directory and/or lower emerge
22 > > > --sync times / save bandwidth (requires app-portage/portage-utils):
23 > > >
24 > > > (echo -e "+ profiles**\n+ eclass**\n+ metadata*\n+ metadata/cache*\n+
25 > > > metadata/dtd**\n+ metadata/glsa**\n+ metadata/news**\n+ scripts**"; for
26 > > > f in `qlist -IC | cut -f1 -d'/' | sort | uniq | sort`; do echo "+ $f**";
27 > > > echo "+ metadata/cache/$f**"; done; echo "- */") >
28 > > > /etc/portage/rsync_excludes
29 > > >
30 > > > you need also to add this line to make.conf
31 > > >
32 > > > PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
33 > >
34 > > This is a bit short-sighted. Using this doesn't allow you to install
35 > > any additional packages (unless the package and its dependencies
36 > > happen to be in the category of a package you already have installed)
37 > > and will break dep resolution when the dependencies change for any
38 > > packages that you currently have installed.
39
40 I agree. Why not just use an NFS mounted PORTDIR?
41
42
43 --
44 Ryan Gibbons
45 817.657.1780
46 gibbonsr@××××××××××××××××××.com
47 --
48 gentoo-server@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-server] trim down portage directory Petr Podrabsky <petrpo@×××××.com>