From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JjCMi-00054e-7V for garchives@archives.gentoo.org; Tue, 08 Apr 2008 11:51:52 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9211EE0740; Tue, 8 Apr 2008 11:51:49 +0000 (UTC) Received: from mta41.charter.net (mta41.charter.net [216.33.127.83]) by pigeon.gentoo.org (Postfix) with ESMTP id 5FC8CE0740 for ; Tue, 8 Apr 2008 11:51:49 +0000 (UTC) Received: from aarprv06.charter.net ([10.20.200.76]) by mta41.charter.net (InterMail vM.7.08.03.00 201-2186-126-20070710) with ESMTP id <20080408115149.XNFY7968.mta41.charter.net@aarprv06.charter.net> for ; Tue, 8 Apr 2008 07:51:49 -0400 Received: from agaffney.org ([71.91.199.206]) by aarprv06.charter.net with ESMTP id <20080408115148.CFAX11293.aarprv06.charter.net@agaffney.org> for ; Tue, 8 Apr 2008 07:51:48 -0400 Received: from [192.168.0.10] (kagome [192.168.0.10]) by agaffney.org (Postfix) with ESMTP id 6EA571E006E for ; Tue, 8 Apr 2008 06:51:48 -0500 (CDT) Message-ID: <47FB5C54.3010702@gentoo.org> Date: Tue, 08 Apr 2008 06:51:48 -0500 From: Andrew Gaffney User-Agent: Thunderbird 2.0.0.12 (X11/20080320) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-server@lists.gentoo.org Reply-to: gentoo-server@lists.gentoo.org MIME-Version: 1.0 To: gentoo-server@lists.gentoo.org Subject: Re: [gentoo-server] trim down portage directory References: <20080408085117.M99216@lutel.pl> In-Reply-To: <20080408085117.M99216@lutel.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Chzlrs: 0 X-Archives-Salt: 5d839800-4c94-4205-9a82-632482983dfe X-Archives-Hash: be69050bef743b43075a434da3b2b050 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 -- gentoo-server@lists.gentoo.org mailing list