From: zimoun <zimon.toutoune@gmail.com>
To: Emmanuel Medernach <Emmanuel.Medernach@iphc.cnrs.fr>,
help-guix <help-guix@gnu.org>
Subject: Re: Trying to replicate guix packages list on another machine
Date: Mon, 27 Jun 2022 16:32:31 +0200 [thread overview]
Message-ID: <87r13aw51c.fsf@gmail.com> (raw)
In-Reply-To: <d260b148-4f52-2e82-f7ee-b37906820e99@iphc.cnrs.fr>
Hi,
On Mon, 27 Jun 2022 at 15:49, Emmanuel Medernach <Emmanuel.Medernach@iphc.cnrs.fr> wrote:
> [Machine A]$ guix package --list-installed | sort | awk '//{ print $1
> "@" $2; }'
> cmake@3.19.2
> gcc-toolchain@4.9.4
> glibc@2.33
> gsl@2.6
> icu4c@68.2
> make@4.3
> pcre@8.44
> zlib@1.2.11
Instead, it seems easier to run:
guix package --export-manifest
> But on machine B:
>
> [Machine B]$ cat ~/.config/guix/channels.scm
> (list (channel
> (name 'guix)
> (url "https://git.savannah.gnu.org/git/guix.git")
> (commit
> "a0178d34f582b50e9bdbb0403943129ae5b560ff")
> (introduction
> (make-channel-introduction
> "9edb3f66fd807b096b48283debdcddccfea34bad"
> (openpgp-fingerprint
> "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))))
Did you run “guix pull” or “guix pull -C ~/.config/guix/channels.scm”?
> [Machine B]$ guix install cmake@3.19.2 gcc-toolchain@4.9.4 glibc@2.33
> gsl@2.6 icu4c@68.2 make@4.3 pcre@8.44 zlib@1.2.11
> guix install: error: glibc: package not found for version 2.33
I guess “guix describe” on ’Machine B’ is not the state specified by
’Machine A’. From my understanding, the easiest workflow is:
machine-A$ guix describe -f channels > state-A.scm
machine-A$ guix package --export-manifest > pkgs-A.scm
exchange these 2 files (even, it is better that these 2 files are
versioned with the project itsefl ;-))
machine-B$ guix time-machine -C state-A.scm \
package -m pkg-A.scm \
-p profile-A
This way, the global state of ’Machine B’ is unchanged; in case you are
working on several projects at various states in the same time.
Hope that helps,
simon
next prev parent reply other threads:[~2022-06-27 14:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-27 13:49 Trying to replicate guix packages list on another machine Emmanuel Medernach
2022-06-27 14:32 ` zimoun [this message]
2022-06-27 14:51 ` Emmanuel Medernach
2022-06-27 15:39 ` zimoun
2022-06-28 6:30 ` Emmanuel Medernach
2022-06-28 8:08 ` zimoun
2022-06-27 14:42 ` Julien Lepiller
2022-06-27 14:56 ` Emmanuel Medernach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r13aw51c.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=Emmanuel.Medernach@iphc.cnrs.fr \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).