From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2AdBL/85G2QNbQEASxT56A (envelope-from ) for ; Wed, 22 Mar 2023 18:25:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +D8bL/85G2SSBwAAauVa8A (envelope-from ) for ; Wed, 22 Mar 2023 18:25:19 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5DB111C98D for ; Wed, 22 Mar 2023 18:25:19 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=nXQIG6OI; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=lepiller.eu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679505919; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=XOSE0XsBKr9vI76LkQLnLmpzKJyRLHg3dBO2AoU72eg=; b=CeyU9Jn/MW9+vDRXmLuP/1fbS2i7NaC3+cdebUYAa0Bsx4jybA9DN7CdvjJfrLpjAI2lt3 9d+n0WZVOZramI2VU/lpqOaerAAPFkqDKsOU0tSAd+UbC4F7vHzJg6VpFKD2LXg3G9T+iN yZDWtD8Dc195yrSTMO/bKevFogMgaYal6qmcdVM6fmUoNxQN3NyWQrMRxQv7kG6cZ0FZc6 lpS7JYZNhRbrujKVQ5OIpncjezBibLX/vJzM1EM6aWoZMusqkcf0el0HdJbcQOMz4NUtOc iuUeqIzp3VdEh+/ci6U+SGcE/2sgGIdZjKVKht+o+6u0ODniSc74BhGBjS73Ag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679505919; a=rsa-sha256; cv=none; b=bV4dMxk/6BQGNtFa1Ue0PAewfFdqYVvLPlFT3D+ookASJGOlyEMYBDOSPvcGG7d1DhwBB4 N7932TBgpRFs/cvVd4Sb8jNBRRUHvgUurwEOEHgqD99pXQ5KuEvTzpmtGCkpI6BrzSGONY 5y+oJCXaKU331T1S7hWS3tQBfMNOrEYvaie2oUiF50Qqy5klTGFrRfOC0WHlJX2yYbt1Sh TKfw7mHWdR7Uuj8gV+MKmmZzLc0UFPuJjDsTuMo4Y5Pcg3csxm9PUNWOstpuLl1sAMF8No wyB+FKQ5/Fz0bgpxnoicwR1Ke8oxzON9kfYIVZMzoHFriqadI7NDqjR4UbEQYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=nXQIG6OI; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=lepiller.eu Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pf2Ch-000662-NZ; Wed, 22 Mar 2023 13:24:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pf2Cf-000653-VL for help-guix@gnu.org; Wed, 22 Mar 2023 13:24:49 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pf2Cc-00007K-OG for help-guix@gnu.org; Wed, 22 Mar 2023 13:24:49 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 584c1b30; Wed, 22 Mar 2023 17:24:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=XOSE0XsBKr9v I76LkQLnLmpzKJyRLHg3dBO2AoU72eg=; b=nXQIG6OId/9tZdpjiCc5rfwTAm2W ivimBWwpODM2l580xQ2Us7Z7gBqLYr1QrnHpLHYl6TJ7k85SoWuQgtr6QDThojF4 xcTpL+rONvwZt4sjvu0P1+un8p6xijwf19Sp2ug74ZhCnqaQ+yW/Fpy3S9tMA0PY rXGPVjvzRJl1H4Fyfhhf0sbO5crpgjS5fY6hX/UsS5tEomPEsS/UT/XsdSXbx11M dQ07JR4oocSICaroyiWJlH7Gz04TUSj1W+uJMjefJzl/fwpRGtJmm45MNjd5U5u/ ubpALfeLFf7rlyopZ5Mj+ltlIXLNKHLbMM0GxYziCGo2KIsodGQSCmb1Hw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id cc540101 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 22 Mar 2023 17:24:40 +0000 (UTC) Date: Wed, 22 Mar 2023 18:24:37 +0100 From: Julien Lepiller To: help-guix@gnu.org, Tanguy LE CARROUR Subject: Re: How to properly upgrade Guix System & Home? User-Agent: K-9 Mail for Android In-Reply-To: <167950510545.8638.5143588589556085001@localhost> References: <167950510545.8638.5143588589556085001@localhost> Message-ID: <125A2318-8CD2-4446-AA1E-938323417CB4@lepiller.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 5DB111C98D X-Spam-Score: -4.00 X-Migadu-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: 9immUwunMmKC Most likely, you're just seeing a weird behavior caused by grafts=2E To mak= e a graft, guix needs the ungrafted package first, so it downloads it, graf= ts it and adds it to the profile=2E The grafted package is live, so it's pr= otected against garbage collection=2E The ungrafted package is not, so it g= ets garbage coldected=2E When you reconfigure, guix needs to download the ungrafted package before = it figures out it already has the graft=2E Since they have the same name and version, I think you're just cwnfusing t= he two :) Le 22 mars 2023 18:11:45 GMT+01:00, Tanguy LE CARROUR a =C3=A9crit=C2=A0: >Hi Guix, > >For quite some time, I'd been religiously upgrading my system weekly=2E >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=2Escm >$ guix package --upgrade >``` > >I was happy with it, but two recent events made me question my faith in t= his=E2=80=A6 > >1) I realized that there was a third `delete-generations`! > >Believe it or not, I didn't know about `guix pull --delete-generations`= =2E >Actually `guix pull --list-generations` was listing a **lot** of month >old stuff=2E > >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=2Escm` and that I actua= lly use! >When I compare `ls -l (which imv)` before and after a cycle >(`guix home reconfigure` / `guix gc`), I have the same hash=2E >Which make sense because I haven't `guix pull` in between=2E 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! >