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 1Fq9Ov-00013H-Vr for garchives@archives.gentoo.org; Tue, 13 Jun 2006 13:57:50 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k5DDsxAC013151; Tue, 13 Jun 2006 13:54:59 GMT Received: from mail.netspace.net.au (cumulus.netspace.net.au [203.10.110.72]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k5DDlvLT011004 for ; Tue, 13 Jun 2006 13:47:58 GMT Received: from [192.168.1.1] (220-253-134-212.TAS.netspace.net.au [220.253.134.212]) by mail.netspace.net.au (Postfix) with ESMTP id 5A9C77D8F2 for ; Tue, 13 Jun 2006 23:47:54 +1000 (EST) Message-ID: <448EC2A5.801@utas.edu.au> Date: Tue, 13 Jun 2006 23:50:29 +1000 From: Jonathan Adamczewski User-Agent: Thunderbird 1.5.0.4 (X11/20060610) 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> In-Reply-To: <62b0912f0606130631j1b700356r920cb5b1b999c819@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: e7c9eac7-3b03-4edb-9d63-27e952cda844 X-Archives-Hash: 629a437568fd5b8b76db541fd4067aa8 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} ] 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