help-guix
[Top][All Lists]
Advanced

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

Re: Trying to replicate guix packages list on another machine


From: Emmanuel Medernach
Subject: Re: Trying to replicate guix packages list on another machine
Date: Tue, 28 Jun 2022 08:30:42 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0


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 via email to

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