From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:46399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDwxU-0007uM-07 for guix-patches@gnu.org; Tue, 09 Apr 2019 16:03:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDwxT-0002UG-2q for guix-patches@gnu.org; Tue, 09 Apr 2019 16:03:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38460) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hDwxS-0002Ti-Ra for guix-patches@gnu.org; Tue, 09 Apr 2019 16:03:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hDwxS-0003SE-Iy for guix-patches@gnu.org; Tue, 09 Apr 2019 16:03:02 -0400 Subject: [bug#35176] [PATCH 0/5] 'guix gc --delete-generations' and '--list-roots' Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190406212656.27025-1-ludo@gnu.org> <20190409210109.42ba3cee@alma-ubu> Date: Tue, 09 Apr 2019 22:02:07 +0200 In-Reply-To: <20190409210109.42ba3cee@alma-ubu> ("=?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?="'s message of "Tue, 9 Apr 2019 21:01:09 +0200") Message-ID: <87ftqrdk1s.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Cc: 35176@debbugs.gnu.org Hi Bj=C3=B6rn, Bj=C3=B6rn H=C3=B6fling skribis: > On Sat, 6 Apr 2019 23:26:56 +0200 > Ludovic Court=C3=A8s wrote: > >> Hello Guix! >>=20 >> This patch series is mostly about making it easier to free space: >> =E2=80=98guix gc --delete-generations=E2=80=99 deletes old generations o= f all the >> user=E2=80=99s profiles prior to collecting garbage. >>=20 >> For consistency, =E2=80=98--delete-generations=E2=80=99 is aliased with = =E2=80=98-d=E2=80=99, so >> =E2=80=98-d=E2=80=99 is repurposed (until now it was an alias for =E2=80= =98--delete=E2=80=99). > > I'm using regularly `guix gc -d /gnu/store/...` and I'm a bit concerned > about re/abusing this existing parameter. First I like the simple '-d' > to delete a store path. It still works actually, it just prints a warning stating that it=E2=80=99s deprecated. (I=E2=80=99m used to =E2=80=98-d=E2=80=99 as well but I=E2=80= =99m confident my muscle memory will get used to =E2=80=98-D=E2=80=99. :-)) > Second, how big is the chance I could accidentally delete (all) older > generations of my profiles? It=E2=80=99s unlikely because if you do =E2=80=9Cguix gc -d /gnu/store/=E2= =80=A6=E2=80=9D, it still behaves like before. Does it address your concern? > I really like to keep them for a long time, until my disk is > near-full, and it looks like gc-roots are no longer a safe way to keep > them? It=E2=80=99s still safe, I do the same as you! The intent is just to provi= de a simple way to =E2=80=9Cremove old stuff=E2=80=9D (currently you have to kno= w that you have at least two profiles, and then run =E2=80=98guix package -p =E2=80=A6= -d=E2=80=99, which isn=E2=80=99t very convenient when all you want is to free some space.) Thanks for your feedback! Ludo=E2=80=99.