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 A49001387B1 for ; Mon, 21 Sep 2015 13:45:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BABA221C00A; Mon, 21 Sep 2015 13:45:40 +0000 (UTC) Received: from smtp.transmode.se (smtp.transmode.se [31.15.61.139]) by pigeon.gentoo.org (Postfix) with ESMTP id 1FA1821C004 for ; Mon, 21 Sep 2015 13:45:39 +0000 (UTC) Received: from exch2.transmode.se (exch2.transmode.se [192.168.203.24]) by smtp.transmode.se (Postfix) with ESMTP id 7DFC31186FB8 for ; Mon, 21 Sep 2015 15:45:38 +0200 (CEST) Received: from exch1.transmode.se (192.168.201.16) by exch2.transmode.se (192.168.203.24) with Microsoft SMTP Server (TLS) id 15.0.1076.9; Mon, 21 Sep 2015 15:45:38 +0200 Received: from exch1.transmode.se ([fe80::3029:ce14:7d42:cc5]) by exch1.transmode.se ([fe80::3029:ce14:7d42:cc5%17]) with mapi id 15.00.1076.000; Mon, 21 Sep 2015 15:45:38 +0200 From: Joakim Tjernlund To: "gentoo-portage-dev@lists.gentoo.org" Subject: Re: [gentoo-portage-dev] Portage questions Thread-Topic: [gentoo-portage-dev] Portage questions Thread-Index: AQHQ8IGBnPyC9yO7G0quPLJ7FGgDvJ5FhWoAgAFfo4A= Date: Mon, 21 Sep 2015 13:45:37 +0000 Message-ID: <1442843137.29498.10.camel@transmode.se> References: <1442409220.32234.28.camel@transmode.se> <55FEE308.4070207@gentoo.org> In-Reply-To: <55FEE308.4070207@gentoo.org> Accept-Language: en-US, sv-SE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Evolution 3.16.5 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [192.168.200.4] Content-Type: text/plain; charset="iso-8859-15" Content-ID: Content-Transfer-Encoding: quoted-printable 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 X-Archives-Salt: 7db751ce-7071-474b-a80a-6a04ce86f2db X-Archives-Hash: 1bffec2ace6efb62735571158f065593 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? >=20 > This command will generate a flat file that is useful for comparisons > with diff -u: >=20 > qlist -IvCURS | LC_ALL=3DC 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 t= hen and now. >=20 > > 2) > > Currently we generate a tar file with binary pkgs containing all upda= ted pkgs, > > unpack the tar file and emerge the binary pkgs with emerge --usepkgon= ly ... > > into a new ROOT. This works but that misses any updates to the profil= e(both gentoo and our own). > >=20 > > To fix that we include a copy of both profiles in the tar file and co= py our > > updated profiles into the new ROOT profiles before merging. This feel= s a bit > > clumsy and I wonder if there is a better way?=20 > >=20 > > Jocke > >=20 >=20 > 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 subv= olume and install the updates into this snapshot, then just change default subvol= ume in BTRFS and reboot. To transfer profile changes before merging binary pkgs one have to copy the= se into the new ROOT. Jocke=