From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 769791387B1 for ; Tue, 22 Sep 2015 04:16:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EAE4021C010; Tue, 22 Sep 2015 04:15:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1797E21C002 for ; Tue, 22 Sep 2015 04:15:57 +0000 (UTC) Received: from [192.168.0.13] (ip174-67-205-96.oc.oc.cox.net [174.67.205.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: zmedico) by smtp.gentoo.org (Postfix) with ESMTPSA id C507D34069F for ; Tue, 22 Sep 2015 04:15:54 +0000 (UTC) Subject: Re: [gentoo-portage-dev] Portage questions To: gentoo-portage-dev@lists.gentoo.org References: <1442409220.32234.28.camel@transmode.se> <55FEE308.4070207@gentoo.org> <1442843137.29498.10.camel@transmode.se> From: Zac Medico X-Enigmail-Draft-Status: N1110 Message-ID: <5600D5F7.8040300@gentoo.org> Date: Mon, 21 Sep 2015 21:15:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <1442843137.29498.10.camel@transmode.se> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Archives-Salt: c4f95c3b-0cd9-480f-8c25-61e1f121492c X-Archives-Hash: 0956fd89c83ab3bc4c31c33e8fd1626b On 09/21/2015 06:45 AM, Joakim Tjernlund wrote: > On Sun, 2015-09-20 at 09:47 -0700, Zac Medico wrote: >> On 09/16/2015 06:13 AM, Joakim Tjernlund wrote: >>> 1) >>> Is there a way to generate a snapshot of an installed portage VDB and then later >>> compare that snapshot against the current VDB and generate a list of >>> added/updated packages? >> >> This command will generate a flat file that is useful for comparisons >> with diff -u: >> >> qlist -IvCURS | LC_ALL=C sort > > I was hoping for something akin to "emerge -pNDu world" but pointing emerge > to another VDB. That would make it easier to see what has changed between then and now. You can export the EPREFIX variable in order to make emerge enter prefix mode. >> >>> 2) >>> Currently we generate a tar file with binary pkgs containing all updated pkgs, >>> unpack the tar file and emerge the binary pkgs with emerge --usepkgonly ... >>> into a new ROOT. This works but that misses any updates to the profile(both gentoo and our own). >>> >>> To fix that we include a copy of both profiles in the tar file and copy our >>> updated profiles into the new ROOT profiles before merging. This feels a bit >>> clumsy and I wonder if there is a better way? >>> >>> Jocke >>> >> >> Like Duncan said, I feel like we're missing some context here. I wonder >> why you use binary packages instead of a full system image, considering >> that it's a "new ROOT." > > Every update to ROOT will be too big if one have use a full system image at every update. > Instead we use BTRFS and create a snapshot of current / in a new BTRFS subvolume > and install the updates into this snapshot, then just change default subvolume in BTRFS and > reboot. > To transfer profile changes before merging binary pkgs one have to copy these into > the new ROOT. > > Jocke > I suppose that emerge --sync is what most people use for this. To distribute your profiles, you might configure portage to sync from your own rsync server. -- Thanks, Zac