unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
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: Tue, 28 Jun 2022 10:08:54 +0200	[thread overview]
Message-ID: <86o7ydfbvt.fsf@gmail.com> (raw)
In-Reply-To: <d9f3af7a-dc58-ef18-3623-9a82fa604470@iphc.cnrs.fr>

Hi,

On Tue, 28 Jun 2022 at 08:30, Emmanuel Medernach <Emmanuel.Medernach@iphc.cnrs.fr> wrote:

> But glibc is 2.31 instead of 2.33

On ’Machine-A’, if you run,

      machine-A$ guix package --list-generations

then I guess ’glibc’ is not installed in the same transaction
(generation) as all the others.

You can open the internals. :-)  For instance, on ’Machine-A’, give a
look at the internal file ’~/.guix-profile/manifest’.  You should see
’glibc’ and its provenance (commit) and I bet it is different from the
other provenance.

Other said, the profile on ’Machine-A’ is populated by various states
(revision).  I guess glibc is at 2.31 at one state and then become 2.33
at another state.  The command “guix package --export-channels” makes
approximation to pick only one state when the profile is composed by
several ones.

Then it becomes hard, nor impossible, to replicate this multi-state
profile on another machine.  “Nor impossible” because it is possible to
use inferiors [1] although I would not recommend going this way.


1: <https://guix.gnu.org/manual/devel/en/guix.html#Inferiors>




> Thank you, yes packages installed are always evolving. I will now 
> promote to use manifests.

Well, from my point of view, the best practise is:

 1. track channels.scm from “guix pull -f channels”
 2. track manifest.scm

then

  guix time-machine -C channels.scm -- <cmd> -m manifest.scm

works independently of the time and of the machine; or it should be. ;-)


Cheers,
simon


  reply	other threads:[~2022-06-28  8:32 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
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 [this message]
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=86o7ydfbvt.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).