unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Emmanuel Medernach <Emmanuel.Medernach@iphc.cnrs.fr>
To: zimoun <zimon.toutoune@gmail.com>, help-guix <help-guix@gnu.org>
Subject: Re: Trying to replicate guix packages list on another machine
Date: Tue, 28 Jun 2022 08:30:42 +0200	[thread overview]
Message-ID: <d9f3af7a-dc58-ef18-3623-9a82fa604470@iphc.cnrs.fr> (raw)
In-Reply-To: <87czeuw1xd.fsf@gmail.com>


Le 27/06/2022 à 17:39, zimoun a écrit :
> Hi,
>
> On Mon, 27 Jun 2022 at 16:51, Emmanuel Medernach <Emmanuel.Medernach@iphc.cnrs.fr> wrote:
>
>> Thanks, here is the resulting manifest:
>>
>> (specifications->manifest
>>     (list "gsl"
>>           "pcre"
>>           "icu4c"
>>           "zlib"
>>           "cmake"
>>           "make"
>>           "gcc-toolchain@4.9"
>>           "glibc"))
>>
>> [Machine B]$ guix time-machine -C ~/.config/guix/channels.scm -- package
>> -m manifest.scm -p profile-A
> Here you are installing in the profile ’profile-A’…
>
>> [Machine B]$ guix package --list-installed  | sort | awk '//{ print $1
>> "@" $2; }'
> …and here, you are listing the packages in the default profile
> ~/.guix-profile.  Instead you should run,
>
>      machine-B$ guix package -p profile-A -I

Thanks, here is the result:

$ guix package -p profile-A -I
glibc   2.31    out /gnu/store/ksy2b6fwfmz40gjajvspl87ia4vsfzj7-glibc-2.31
gcc-toolchain   4.9.4   out 
/gnu/store/frmwyxb8zl8vwd7840gb7j526c4dzxh0-gcc-toolchain-4.9.4
make    4.3     out /gnu/store/4k33n2nhsnnaxk2ip75gj7xiqdjns5hq-make-4.3
cmake   3.19.2  out /gnu/store/4axd987cf0bpkshybl1w7g5hp9yqm660-cmake-3.19.2
zlib    1.2.11  out /gnu/store/rykm237xkmq7rl1p0nwass01p090p88x-zlib-1.2.11
icu4c   68.2    out /gnu/store/hjggah4g7vb4db3c62lmmpqplv5g4drh-icu4c-68.2
pcre    8.44    out /gnu/store/k0aqiy7yx8n28dvm3f0a04ka5sd8y950-pcre-8.44
gsl     2.6     out /gnu/store/xq64iaxx2gmlcgnipj31wjxlf1yd2g2p-gsl-2.6

But glibc is 2.31 instead of 2.33


>
> Last, as Julien pointed out, it might be possible that on ’Machine-A’
> the packages are from various states.  You can give a look at:
>
>      machine-A$ guix package --list-generations
>
> and so, it is possible that the packages you installed do not match the
> current state of Guix.  For instance, you could compare:
>
>      machine-A$ guix package --export-channels
>      machine-A$ guix pull -f channels
>
> Well, if you did:
>
>      guix pull
>      guix install gsl
>      guix pull
>      guix install pcre
>      guix pull
>      guix zlib
>      etc.
>
> the profile is not composed by only one state therefore it cannot be
> replicated.  Only a rough approximation can be made.
>
> Or if you did:
>
>     guix install gsl pcre icu4c etc.
>     guix pull
>
> then “guix describe” does not provide the Guix state of the installed
> packages.

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

Best regards,

Emmanuel


>
> Cheers,
> simon


  reply	other threads:[~2022-06-28  7:28 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 [this message]
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=d9f3af7a-dc58-ef18-3623-9a82fa604470@iphc.cnrs.fr \
    --to=emmanuel.medernach@iphc.cnrs.fr \
    --cc=help-guix@gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /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).