Tomasz Lutelmowski wrote:

Hello,

Here is one-liner which can be helpful if you want to trim down your gentoo
installation, particulary /usr/portage directory and/or lower emerge --sync times / save bandwidth (requires app-portage/portage-utils):

(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

you need also to add this line to make.conf

PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"

This is a bit short-sighted. Using this doesn't allow you to install any additional packages (unless the package and its dependencies happen to be in the category of a package you already have installed) and will break dep resolution when the dependencies change for any packages that you currently have installed.

--
Andrew Gaffney                                 http://dev.gentoo.org/~agaffney/
Gentoo Linux Developer             Catalyst/Installer + x86 release coordinator
--
[email protected] mailing list

Reply via email to