unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: help-guix@gnu.org, Tanguy LE CARROUR <tanguy@bioneland.org>
Subject: Re: How to properly upgrade Guix System & Home?
Date: Wed, 22 Mar 2023 18:24:37 +0100	[thread overview]
Message-ID: <125A2318-8CD2-4446-AA1E-938323417CB4@lepiller.eu> (raw)
In-Reply-To: <167950510545.8638.5143588589556085001@localhost>

Most likely, you're just seeing a weird behavior caused by grafts. To make a graft, guix needs the ungrafted package first, so it downloads it, grafts it and adds it to the profile. The grafted package is live, so it's protected against garbage collection. The ungrafted package is not, so it gets garbage coldected.

When you reconfigure, guix needs to download the ungrafted package before it figures out it already has the graft.

Since they have the same name and version, I think you're just cwnfusing the two :)

Le 22 mars 2023 18:11:45 GMT+01:00, Tanguy LE CARROUR <tanguy@bioneland.org> a écrit :
>Hi Guix,
>
>For quite some time, I'd been religiously upgrading my system weekly.
>My mantra was something along those lines:
>
>```console
>$ sudo guix system delete-generations
>$ guix package --delete-generations
>$ guix gc
>$ guix pull
>$ sudo guix system reconfigure my-system.scm
>$ guix package --upgrade
>```
>
>I was happy with it, but two recent events made me question my faith in this…
>
>1) I realized that there was a third `delete-generations`!
>
>Believe it or not, I didn't know about `guix pull --delete-generations`.
>Actually `guix pull --list-generations` was listing a **lot** of month
>old stuff.
>
>2) I migrated to Guix Home!
>
>Suddenly everything I thought I understood didn't seem to make any sense
>any more! For instance, I can do `guix home reconfigure` and `guix gc` in
>a loop and `guix home reconfigure` will keep on downloading things and
>`guix gc` will keep on deleting them!? And when I say "things", I mean
>packages that are explicitly declared in `my-home.scm` and that I actually use!
>When I compare `ls -l (which imv)` before and after a cycle
>(`guix home reconfigure` / `guix gc`), I have the same hash.
>Which make sense because I haven't `guix pull` in between. So, why is a `imv`
>garbage collected and re-downloaded/installed?!
>
>Does it make any sense? Am I the only one facing this issue? What's the
>proper way of upgrading a Guix System & Home?
>
>Any help would be very much appreciated!
>


  reply	other threads:[~2023-03-22 17:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-22 17:11 How to properly upgrade Guix System & Home? Tanguy LE CARROUR
2023-03-22 17:24 ` Julien Lepiller [this message]
2023-03-23  7:24   ` Tanguy LE CARROUR
2023-03-24 18:03     ` Maxim Cournoyer
2023-03-25 16:02       ` Tanguy LE CARROUR

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=125A2318-8CD2-4446-AA1E-938323417CB4@lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=help-guix@gnu.org \
    --cc=tanguy@bioneland.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).