From: | Tomasz Lutelmowski <tomek@×××××.pl> |
---|---|
To: | gentoo-server@l.g.o |
Subject: | [gentoo-server] trim down portage directory |
Date: | Tue, 08 Apr 2008 08:58:12 |
Message-Id: | 20080408085117.M99216@lutel.pl |
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | Hello, |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | Here is one-liner which can be helpful if you want to trim down your |
18 | gentoo |
19 | |
20 | |
21 | installation, particulary /usr/portage |
22 | directory and/or lower emerge --sync times / save bandwidth (requires app-portage/portage-utils): |
23 | |
24 | |
25 | |
26 | |
27 | |
28 | (echo -e "+ profiles**\n+ eclass**\n+ metadata*\n+ metadata/cache*\n+ metadata/dtd**\n+ metadata/glsa**\n+ metadata/news**\n+ scripts**"; for f in `qlist -IC | cut -f1 -d'/' | sort | uniq | sort`; do echo "+ $f**"; echo "+ metadata/cache/$f**"; done; echo "- */") > /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 | Regards, |
35 | Tomek |
36 | |
37 | |
38 | |
39 | |
40 | -- |
41 | gentoo-server@l.g.o mailing list |
42 | |
43 | |
44 |
Subject | Author |
---|---|
Re: [gentoo-server] trim down portage directory | Andrew Gaffney <agaffney@g.o> |