1 |
On Tue, 08 Apr 2008 06:51:48 -0500, Andrew Gaffney wrote |
2 |
> Tomasz Lutelmowski wrote: |
3 |
> > |
4 |
> > Hello, |
5 |
> > |
6 |
> > Here is one-liner which can be helpful if you want to trim down your gentoo |
7 |
> > installation, particulary /usr/portage directory and/or lower emerge |
8 |
> > --sync times / save bandwidth (requires app-portage/portage-utils): |
9 |
> > |
10 |
> > (echo -e "+ profiles**\n+ eclass**\n+ metadata*\n+ metadata/cache*\n+ |
11 |
> > metadata/dtd**\n+ metadata/glsa**\n+ metadata/news**\n+ scripts**"; for |
12 |
> > f in `qlist -IC | cut -f1 -d'/' | sort | uniq | sort`; do echo "+ $f**"; |
13 |
> > echo "+ metadata/cache/$f**"; done; echo "- */") > |
14 |
> > /etc/portage/rsync_excludes |
15 |
> > |
16 |
> > you need also to add this line to make.conf |
17 |
> > |
18 |
> > PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" |
19 |
> |
20 |
> This is a bit short-sighted. Using this doesn't allow you to install |
21 |
> any additional packages (unless the package and its dependencies |
22 |
> happen to be in the category of a package you already have installed) |
23 |
> and will break dep resolution when the dependencies change for any |
24 |
> packages that you currently have installed. |
25 |
|
26 |
|
27 |
This is true, anyway I'm using it on all production servers with stable and |
28 |
final set of packages. |
29 |
-- |
30 |
gentoo-server@l.g.o mailing list |