[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Find installed library version of GNU Guix commit x

From: Zelphir Kaltstahl
Subject: Find installed library version of GNU Guix commit x
Date: Wed, 6 Jan 2021 20:51:44 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

Hello Guix users!

I would like to know a command line way of finding the version of a
library, which I install, when I am using time-machine as follows:

guix time-machine \
     --channels="${DIR}/channels.scm" -- \
     environment \

Where DIR is of course some directory in which a channels.scm and
manifest.scm file are.

I initially tried:

guix time-machine 
 -- package -I

But that does not give the expected output and lists versions of things
not specified in the manifest file, as well as not showing the versions
of the things specified in the manifest file. It apparently relates to
the base profile.

Then I looked at the websites:

OK here I see the library I am specifying in my manifest file. But how
to know, between which 2 commits the revision (or commit id) is, which
is specified in my channels file? Then I tried changing the URL:

Nope, this does not exist. But hey, I can click on one of the displayed
links to a revision and then change that URL!


And there I found a link "View package derivations":

Perhaps those "Package derivations" are what I am looking for. So I
search for guile-json in the first input field "Search query".
Unfortunately now several versions come up and now I am stuck. Which
version am I installing?

Here are contents of my manifest and channels files:


(no versions specified, as those are probably redundant, because the
channel is specified with a precise commit)

(list (channel
        (name 'guix)
        (url "";)
              "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")))))

So I already learned today:

1. Revisions seem to be the same thing as commit ids in the version
control system. Just a different name for the same thing.

2. Apparently package derivations are "the versions following from a git
commit of Guix", but there can be more shown, than I expected.

Can you help me Guix noob out?^^

Thank you!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]