* Find installed library version of GNU Guix commit x
@ 2021-01-06 19:51 Zelphir Kaltstahl
2021-01-07 12:30 ` zimoun
0 siblings, 1 reply; 6+ messages in thread
From: Zelphir Kaltstahl @ 2021-01-06 19:51 UTC (permalink / raw)
To: help-guix
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 \
--manifest="${DIR}/manifest.scm"
~~~~
Where DIR is of course some directory in which a channels.scm and
manifest.scm file are.
I initially tried:
~~~~
guix time-machine --channels=/home/xiaolong/dev/guile/fantasy-vacation-planner/guix-env/channels.scm -- 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:
http://data.guix.gnu.org/repository/1/branch/master/package/guile-json
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:
http://data.guix.gnu.org/repository/1/commit/8518a3692cbb9cd96d69c03e9de9ad6fdcfebbee/package/guile-json
Nope, this does not exist. But hey, I can click on one of the displayed
links to a revision and then change that URL!
http://data.guix.gnu.org/revision/f9e1baa8933ea2ed385d0272dbfbe4e22f192bde
Becomes:
http://data.guix.gnu.org/revision/8518a3692cbb9cd96d69c03e9de9ad6fdcfebbee
And there I found a link "View package derivations":
http://data.guix.gnu.org/revision/8518a3692cbb9cd96d69c03e9de9ad6fdcfebbee/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:
~~~~
(specifications->manifest
'("guile"
"guile-json"))
~~~~
(no versions specified, as those are probably redundant, because the
channel is specified with a precise commit)
~~~~
(list (channel
(name 'guix)
(url "https://git.savannah.gnu.org/git/guix.git")
(commit
"8518a3692cbb9cd96d69c03e9de9ad6fdcfebbee")
(introduction
(make-channel-introduction
"9edb3f66fd807b096b48283debdcddccfea34bad"
(openpgp-fingerprint
"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!
Zelphir
--
repositories: https://notabug.org/ZelphirKaltstahl
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Find installed library version of GNU Guix commit x
2021-01-06 19:51 Find installed library version of GNU Guix commit x Zelphir Kaltstahl
@ 2021-01-07 12:30 ` zimoun
2021-01-07 19:03 ` Zelphir Kaltstahl
0 siblings, 1 reply; 6+ messages in thread
From: zimoun @ 2021-01-07 12:30 UTC (permalink / raw)
To: Zelphir Kaltstahl; +Cc: help-guix
Hi,
On Wed, 6 Jan 2021 at 20:52, Zelphir Kaltstahl
<zelphirkaltstahl@posteo.de> wrote:
> 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:
[...]
> 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?^^
What are you asking? Sorry, I am confused and I am not sure to understand.
About the Data Service, the commit ranges work per "state". See [1]
for an example. Therefore, they are not always accurate.
1: https://lists.gnu.org/archive/html/guix-devel/2020-11/msg00420.html
All the best,
simon
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Find installed library version of GNU Guix commit x
2021-01-07 12:30 ` zimoun
@ 2021-01-07 19:03 ` Zelphir Kaltstahl
2021-01-10 23:52 ` Zelphir Kaltstahl
2021-01-11 16:04 ` zimoun
0 siblings, 2 replies; 6+ messages in thread
From: Zelphir Kaltstahl @ 2021-01-07 19:03 UTC (permalink / raw)
To: zimoun; +Cc: help-guix
Hi simon!
I'll try to paraphrase my question:
If I run:
~~~~
guix time-machine \
--channels="${DIR}/channels.scm" -- \
environment \
--manifest="${DIR}/manifest.scm"
~~~~
Using the files I wrote about, how would I go about knowing, which
version of guile-json I am really using? What command can I run, that
will list me the versions of packages, which I installed into the
environment, which I am temporarily creating using the above command?
With version, I mean something like "3.5.0".
When I do:
~~~~
guix install guile-json
The following package will be installed:
guile-json 4.4.1
...
~~~~
I see the version. How can I look up that info in the created environment?
Regards,
Zelphir
On 1/7/21 1:30 PM, zimoun wrote:
> Hi,
>
> On Wed, 6 Jan 2021 at 20:52, Zelphir Kaltstahl
> <zelphirkaltstahl@posteo.de> wrote:
>
>> 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:
> [...]
>
>> 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?^^
> What are you asking? Sorry, I am confused and I am not sure to understand.
>
> About the Data Service, the commit ranges work per "state". See [1]
> for an example. Therefore, they are not always accurate.
>
> 1: https://lists.gnu.org/archive/html/guix-devel/2020-11/msg00420.html
>
>
> All the best,
> simon
--
repositories: https://notabug.org/ZelphirKaltstahl
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Find installed library version of GNU Guix commit x
2021-01-07 19:03 ` Zelphir Kaltstahl
@ 2021-01-10 23:52 ` Zelphir Kaltstahl
2021-01-11 16:04 ` zimoun
1 sibling, 0 replies; 6+ messages in thread
From: Zelphir Kaltstahl @ 2021-01-10 23:52 UTC (permalink / raw)
To: zimoun; +Cc: help-guix
Hi all!
I thought about it again and perhaps the simplest variation of the
question is:
How to list versions of installed packages of temporary "environments"
(best from command line, using a guix command)?
Regards,
Zelphir
On 1/7/21 8:03 PM, Zelphir Kaltstahl wrote:
>
> Hi simon!
>
> I'll try to paraphrase my question:
>
> If I run:
>
> ~~~~
> guix time-machine \
> --channels="${DIR}/channels.scm" -- \
> environment \
> --manifest="${DIR}/manifest.scm"
> ~~~~
>
> Using the files I wrote about, how would I go about knowing, which
> version of guile-json I am really using? What command can I run, that
> will list me the versions of packages, which I installed into the
> environment, which I am temporarily creating using the above command?
>
> With version, I mean something like "3.5.0".
>
> When I do:
>
> ~~~~
> guix install guile-json
> The following package will be installed:
> guile-json 4.4.1
> ...
> ~~~~
>
> I see the version. How can I look up that info in the created environment?
>
> Regards,
> Zelphir
>
> On 1/7/21 1:30 PM, zimoun wrote:
>> Hi,
>>
>> On Wed, 6 Jan 2021 at 20:52, Zelphir Kaltstahl
>> <zelphirkaltstahl@posteo.de> wrote:
>>
>>> 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:
>> [...]
>>
>>> 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?^^
>> What are you asking? Sorry, I am confused and I am not sure to understand.
>>
>> About the Data Service, the commit ranges work per "state". See [1]
>> for an example. Therefore, they are not always accurate.
>>
>> 1: https://lists.gnu.org/archive/html/guix-devel/2020-11/msg00420.html
>>
>>
>> All the best,
>> simon
> --
> repositories: https://notabug.org/ZelphirKaltstahl
--
repositories: https://notabug.org/ZelphirKaltstahl
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Find installed library version of GNU Guix commit x
2021-01-07 19:03 ` Zelphir Kaltstahl
2021-01-10 23:52 ` Zelphir Kaltstahl
@ 2021-01-11 16:04 ` zimoun
2021-01-11 19:10 ` Zelphir Kaltstahl
1 sibling, 1 reply; 6+ messages in thread
From: zimoun @ 2021-01-11 16:04 UTC (permalink / raw)
To: Zelphir Kaltstahl; +Cc: help-guix
Hi,
On Thu, 07 Jan 2021 at 20:03, Zelphir Kaltstahl <zelphirkaltstahl@posteo.de> wrote:
> ~~~~
> guix time-machine \
> --channels="${DIR}/channels.scm" -- \
> environment \
> --manifest="${DIR}/manifest.scm"
> ~~~~
>
> Using the files I wrote about, how would I go about knowing, which
> version of guile-json I am really using? What command can I run, that
> will list me the versions of packages, which I installed into the
> environment, which I am temporarily creating using the above command?
[...]
> I see the version. How can I look up that info in the created environment?
I am not sure to understand your question. I am guessing… :-)
Once you are in:
guix package -p $GUIX_ENVIRONMENT -I
but this is no robust and for example it does not when the environment
is created with --container or --pure; because ’guix’ does not exist by
default.
Otherwise, give a look at the optioj --root.
All the best,
simon
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Find installed library version of GNU Guix commit x
2021-01-11 16:04 ` zimoun
@ 2021-01-11 19:10 ` Zelphir Kaltstahl
0 siblings, 0 replies; 6+ messages in thread
From: Zelphir Kaltstahl @ 2021-01-11 19:10 UTC (permalink / raw)
To: zimoun; +Cc: help-guix
Hi Simon!
Yes! That is what I was looking for. Thank you!
Regards,
Zelphir
On 1/11/21 5:04 PM, zimoun wrote:
> Hi,
>
> On Thu, 07 Jan 2021 at 20:03, Zelphir Kaltstahl <zelphirkaltstahl@posteo.de> wrote:
>
>> ~~~~
>> guix time-machine \
>> --channels="${DIR}/channels.scm" -- \
>> environment \
>> --manifest="${DIR}/manifest.scm"
>> ~~~~
>>
>> Using the files I wrote about, how would I go about knowing, which
>> version of guile-json I am really using? What command can I run, that
>> will list me the versions of packages, which I installed into the
>> environment, which I am temporarily creating using the above command?
> [...]
>
>> I see the version. How can I look up that info in the created environment?
> I am not sure to understand your question. I am guessing… :-)
>
> Once you are in:
>
> guix package -p $GUIX_ENVIRONMENT -I
>
> but this is no robust and for example it does not when the environment
> is created with --container or --pure; because ’guix’ does not exist by
> default.
>
> Otherwise, give a look at the optioj --root.
>
> All the best,
> simon
--
repositories: https://notabug.org/ZelphirKaltstahl
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-01-11 19:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-06 19:51 Find installed library version of GNU Guix commit x Zelphir Kaltstahl
2021-01-07 12:30 ` zimoun
2021-01-07 19:03 ` Zelphir Kaltstahl
2021-01-10 23:52 ` Zelphir Kaltstahl
2021-01-11 16:04 ` zimoun
2021-01-11 19:10 ` Zelphir Kaltstahl
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.