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 1JjDZS-0003Rh-MC for garchives@archives.gentoo.org; Tue, 08 Apr 2008 13:09:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C4E96E078D; Tue, 8 Apr 2008 13:07:57 +0000 (UTC) Received: from smtp.energoprojekt.pl (smtp.energoprojekt.pl [213.25.35.133]) by pigeon.gentoo.org (Postfix) with ESMTP id 8D862E078D for ; Tue, 8 Apr 2008 13:07:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.energoprojekt.pl (postfix) with ESMTP id 7C8146B9A0 for ; Tue, 8 Apr 2008 15:07:56 +0200 (CEST) X-Virus-Scanned: amavisd-new at energoprojekt.pl Received: from smtp.energoprojekt.pl ([127.0.0.1]) by localhost (gw.energoprojekt.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7qaQPUr-g8tz for ; Tue, 8 Apr 2008 15:07:51 +0200 (CEST) Received: from mail.lutel.pl (localhost [127.0.0.1]) by smtp.energoprojekt.pl (postfix) with ESMTP id BFD266B9AE for ; Tue, 8 Apr 2008 15:07:51 +0200 (CEST) From: "Tomasz Lutelmowski" To: gentoo-server@lists.gentoo.org Subject: Re: [gentoo-server] trim down portage directory Date: Tue, 8 Apr 2008 15:07:51 +0200 Message-Id: <20080408125457.M88942@lutel.pl> In-Reply-To: <47FB5C54.3010702@gentoo.org> References: <20080408085117.M99216@lutel.pl> <47FB5C54.3010702@gentoo.org> X-OriginatingIP: 85.222.9.113 (tomek@lutel.pl) 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 Content-Type: text/plain; charset=iso-8859-2 X-Archives-Salt: 74a49861-ade7-4250-b941-4e8907aa60bf X-Archives-Hash: 99eb2d60dafc7406eba497995e0f8d1b On Tue, 08 Apr 2008 06:51:48 -0500, Andrew Gaffney wrote > 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. This is true, anyway I'm using it on all production servers with stable and final set of packages. -- gentoo-server@lists.gentoo.org mailing list