From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: List of installed package, version pairs Date: Wed, 16 Jan 2019 08:35:40 +0100 Message-ID: References: <20190110073328.GE18849@macbook41> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000cfd561057f8e537f" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:59129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjfk1-00069p-RO for help-guix@gnu.org; Wed, 16 Jan 2019 02:36:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjfjz-0004xL-8P for help-guix@gnu.org; Wed, 16 Jan 2019 02:36:00 -0500 Received: from mail-it1-x12d.google.com ([2607:f8b0:4864:20::12d]:35009) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gjfjw-0004dh-6g for help-guix@gnu.org; Wed, 16 Jan 2019 02:35:58 -0500 Received: by mail-it1-x12d.google.com with SMTP id p197so1479446itp.0 for ; Tue, 15 Jan 2019 23:35:53 -0800 (PST) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Jack Hill Cc: help-guix --000000000000cfd561057f8e537f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Jack, you could also try to make sense of the individual profile generation manifests. The union of those should give a farily comprehensive list, and it comes with versions. 2019. jan. 15., K 22:29 d=C3=A1tummal Jack Hill ezt = =C3=ADrta: > Thanks! I'm still not quite there, but the suggestion below have been > quite helpful in my thinking and experimentation. > > On Thu, 10 Jan 2019, Efraim Flashner wrote: > > > For packages you have installed in your profile > > 'guix package -I | cut -f1,2 --output-delimiter=3D@ | sort -u' gives a > > nice list. Perhaps someone else has an idea for the list from your > > os-config. > > I think I have an answer for the OS config: pass the --profile option to > guix package, so the guix package command becomes 'guix package > --profile=3D/var/guix/profiles/system/profile -I' > > > Although the code above doesn't take into account build inputs and > > packages that are in your binaries' paths. For that my two initial idea= s > > are 'guix package -I | cut -f1 | sort -u | xargs guix size' or > > 'guix package -I | cut -f1 | sort -u | guix refresh --list-transitive' > > and some more shell scripting to get the package and version. > > Yes, I did want to inputs in the list as well. However, I worry that > calculating these by passing package names to the current guix may > inadvertently list newer inputs than were used by the, potentially older, > guix that instantiated the profile. > > Best, > Jack > > Best regards, g_bor --000000000000cfd561057f8e537f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello J= ack,

you could also try to make sense of the ind= ividual profile generation
manifests.

The union of those should give a farily comprehensive list, and it comes= with versions.

2019. jan. 15., K 22:29 d=C3=A1tummal Jack Hill <jackhill@jackhill.us> e= zt =C3=ADrta:
Thanks! I'm still= not quite there, but the suggestion below have been
quite helpful in my thinking and experimentation.

On Thu, 10 Jan 2019, Efraim Flashner wrote:

> For packages you have installed in your profile
> 'guix package -I | cut -f1,2 --output-delimiter=3D@ | sort -u'= gives a
> nice list. Perhaps someone else has an idea for the list from your
> os-config.

I think I have an answer for the OS config: pass the --profile option to guix package, so the guix package command becomes 'guix package
--profile=3D/var/guix/profiles/system/profile -I'

> Although the code above doesn't take into account build inputs and=
> packages that are in your binaries' paths. For that my two initial= ideas
> are 'guix package -I | cut -f1 | sort -u | xargs guix size' or=
> 'guix package -I | cut -f1 | sort -u | guix refresh --list-transit= ive'
> and some more shell scripting to get the package and version.

Yes, I did want to inputs in the list as well. However, I worry that
calculating these by passing package names to the current guix may
inadvertently list newer inputs than were used by the, potentially older, <= br> guix that instantiated the profile.

Best,
Jack


Best regards,
g_bor
--000000000000cfd561057f8e537f--