From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FqCgo-000570-06 for garchives@archives.gentoo.org; Tue, 13 Jun 2006 17:28:30 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k5DHOROQ004851; Tue, 13 Jun 2006 17:24:27 GMT Received: from egr.msu.edu (jeeves.egr.msu.edu [35.9.37.127]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k5DHJI02000945 for ; Tue, 13 Jun 2006 17:19:18 GMT Received: from [35.9.129.93] (torx [35.9.129.93]) (authenticated bits=0) by egr.msu.edu (8.13.6/8.13.4) with ESMTP id k5DHJG1H012855 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 13 Jun 2006 13:19:19 -0400 (EDT) Message-ID: <448EF359.8000007@gentoo.org> Date: Tue, 13 Jun 2006 13:18:17 -0400 From: Alec Warner Organization: Gentoo User-Agent: Mozilla Thunderbird 1.0.8 (X11/20060424) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Sharing portage? References: <62b0912f0606130631j1b700356r920cb5b1b999c819@mail.gmail.com> <448EC2A5.801@utas.edu.au> In-Reply-To: <448EC2A5.801@utas.edu.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 0631213e-25d4-4192-a8ae-5d9c79838e9a X-Archives-Hash: c69c48e062c7e9933e510c747ee49cfc Jonathan Adamczewski wrote: > Molle Bestefich wrote: > >>Hi >> >>Follow-up question to the backup thingy. >> >>Is there an easy way to share Portage's database between multiple >>virtual machines? >> >>Optimally, I would emerge --sync and the results would land in a >>filesystem that I'd share between VMs, so I don't have to do emerge >>--sync in each and all of them. The filesystem could perhaps be >>readonly to the virtual machines, except for the one doing the --sync >>of course. > > > I share /usr/portage across several machines as an nfs mount. 'emerge > --sync' is done on only one machine. > > Until recently, 'emerge --metadata' was still needed on the other > machines, but thanks to the metadata_overlay database, this is no longer > necessary. And most emerge-related activities are much, much faster. > > [To use the new database module, with portage-2.1, put > > in /etc/portage/modules: > portdbapi.auxdbmodule = cache.metadata_overlay.database > > in /etc/make.conf: > FEATURE="-metadata-transfer" > > and remove /var/cache/edb/dep/\${PORTDIR} ] Please Please Please read the docs before using metadata_overlay; there are some stipulations you need to follow when turning it on, specifically "you cannot edit eclasses". Otherwise, let it loose ;) > > > To have distfiles safely shared across the many machines, you need > FEATURES="distlocks" and you'll need to relocate (or mount separately) > ${DISTDIR} if ${PORTDIR} is read-only. > > > Also, I think you're getting into questions that should be on -user. ;) > > j. -- gentoo-dev@gentoo.org mailing list