From mboxrd@z Thu Jan  1 00:00:00 1970
From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= <boskovits@gmail.com>
Subject: Re: List of installed package, version pairs
Date: Wed, 16 Jan 2019 08:35:40 +0100
Message-ID: <CAE4v=piyV+gHjekp0YmU5ons-Ed6gN6OpR0rpuqiBAoACSHA4A@mail.gmail.com>
References: <alpine.DEB.2.20.1901091703170.7735@marsh.hcoop.net>
	<20190110073328.GE18849@macbook41>
	<alpine.DEB.2.20.1901151612300.30166@marsh.hcoop.net>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="000000000000cfd561057f8e537f"
Return-path: <help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([209.51.188.92]:59129)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <boskovits@gmail.com>) 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 <boskovits@gmail.com>) 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 <boskovits@gmail.com>) 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 <help-guix@gnu.org>; Tue, 15 Jan 2019 23:35:53 -0800 (PST)
In-Reply-To: <alpine.DEB.2.20.1901151612300.30166@marsh.hcoop.net>
List-Id: <help-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-guix>,
	<mailto:help-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-guix/>
List-Post: <mailto:help-guix@gnu.org>
List-Help: <mailto:help-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-guix>,
	<mailto:help-guix-request@gnu.org?subject=subscribe>
Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org
Sender: "Help-Guix" <help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org>
To: Jack Hill <jackhill@jackhill.us>
Cc: help-guix <help-guix@gnu.org>

--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 <jackhill@jackhill.us> 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

<div dir=3D"ltr"><div dir=3D"auto"><div dir=3D"auto"><br></div><div>Hello J=
ack,<div dir=3D"auto"><br></div>you could also try to make sense of the ind=
ividual profile generation <br></div><div>manifests.</div><div><br></div><d=
iv>The union of those should give a farily comprehensive list, and it comes=
 with versions.</div><div><br></div><div><div class=3D"gmail_quote"><div di=
r=3D"ltr">2019. jan. 15., K 22:29 d=C3=A1tummal Jack Hill &lt;<a href=3D"ma=
ilto:jackhill@jackhill.us" target=3D"_blank">jackhill@jackhill.us</a>&gt; e=
zt =C3=ADrta:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 =
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks! I&#39;m still=
 not quite there, but the suggestion below have been <br>
quite helpful in my thinking and experimentation.<br>
<br>
On Thu, 10 Jan 2019, Efraim Flashner wrote:<br>
<br>
&gt; For packages you have installed in your profile<br>
&gt; &#39;guix package -I | cut -f1,2 --output-delimiter=3D@ | sort -u&#39;=
 gives a<br>
&gt; nice list. Perhaps someone else has an idea for the list from your<br>
&gt; os-config.<br>
<br>
I think I have an answer for the OS config: pass the --profile option to <b=
r>
guix package, so the guix package command becomes &#39;guix package <br>
--profile=3D/var/guix/profiles/system/profile -I&#39;<br>
<br>
&gt; Although the code above doesn&#39;t take into account build inputs and=
<br>
&gt; packages that are in your binaries&#39; paths. For that my two initial=
 ideas<br>
&gt; are &#39;guix package -I | cut -f1 | sort -u | xargs guix size&#39; or=
<br>
&gt; &#39;guix package -I | cut -f1 | sort -u | guix refresh --list-transit=
ive&#39;<br>
&gt; and some more shell scripting to get the package and version.<br>
<br>
Yes, I did want to inputs in the list as well. However, I worry that <br>
calculating these by passing package names to the current guix may <br>
inadvertently list newer inputs than were used by the, potentially older, <=
br>
guix that instantiated the profile.<br>
<br>
Best,<br>
Jack<br>
<br></blockquote><div><br></div><div>Best regards,</div><div>g_bor<br></div=
></div></div></div>
</div>

--000000000000cfd561057f8e537f--