From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:36386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCsr5-0005RQ-SZ for guix-patches@gnu.org; Sat, 06 Apr 2019 17:28:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCsr4-00028J-Sf for guix-patches@gnu.org; Sat, 06 Apr 2019 17:28:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33968) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hCsr4-000283-NL for guix-patches@gnu.org; Sat, 06 Apr 2019 17:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hCsr4-00056T-IK for guix-patches@gnu.org; Sat, 06 Apr 2019 17:28:02 -0400 Subject: [bug#35176] [PATCH 0/5] 'guix gc --delete-generations' and '--list-roots' Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:36124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCsqA-0005LO-CQ for guix-patches@gnu.org; Sat, 06 Apr 2019 17:27:10 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Sat, 6 Apr 2019 23:26:56 +0200 Message-Id: <20190406212656.27025-1-ludo@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 35176@debbugs.gnu.org Hello Guix! This patch series is mostly about making it easier to free space: ‘guix gc --delete-generations’ deletes old generations of all the user’s profiles prior to collecting garbage. For consistency, ‘--delete-generations’ is aliased with ‘-d’, so ‘-d’ is repurposed (until now it was an alias for ‘--delete’). Thoughts? Ludo’. Ludovic Courtès (5): Add (guix store roots). guix gc: Add '--list-roots'. profiles: Add 'generation-profile'. guix gc: Add '--delete-generations'. scripts: GC hint suggests 'guix gc -d 1m'. Makefile.am | 6 ++- doc/guix.texi | 22 +++++++- guix/profiles.scm | 15 ++++++ guix/scripts.scm | 10 ++-- guix/scripts/gc.scm | 66 +++++++++++++++++++++-- guix/store/roots.scm | 120 ++++++++++++++++++++++++++++++++++++++++++ tests/guix-gc.sh | 6 ++- tests/store-roots.scm | 53 +++++++++++++++++++ 8 files changed, 282 insertions(+), 16 deletions(-) create mode 100644 guix/store/roots.scm create mode 100644 tests/store-roots.scm -- 2.21.0