unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: "Björn Höfling" <bjoern.hoefling@bjoernhoefling.de>
Cc: 35176@debbugs.gnu.org
Subject: [bug#35176] [PATCH 0/5] 'guix gc --delete-generations' and '--list-roots'
Date: Tue, 09 Apr 2019 22:02:07 +0200	[thread overview]
Message-ID: <87ftqrdk1s.fsf@gnu.org> (raw)
In-Reply-To: <20190409210109.42ba3cee@alma-ubu> ("Björn Höfling"'s message of "Tue, 9 Apr 2019 21:01:09 +0200")

Hi Björn,

Björn Höfling <bjoern.hoefling@bjoernhoefling.de> skribis:

> On Sat,  6 Apr 2019 23:26:56 +0200
> Ludovic Courtès <ludo@gnu.org> wrote:
>
>> 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’).
>
> 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’s
deprecated.  (I’m used to ‘-d’ as well but I’m confident my muscle
memory will get used to ‘-D’.  :-))

> Second, how big is the chance I could accidentally delete (all) older
> generations of my profiles?

It’s unlikely because if you do “guix gc -d /gnu/store/…”, 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’s still safe, I do the same as you!  The intent is just to provide a
simple way to “remove old stuff” (currently you have to know that you
have at least two profiles, and then run ‘guix package -p … -d’, which
isn’t very convenient when all you want is to free some space.)

Thanks for your feedback!

Ludo’.

  reply	other threads:[~2019-04-09 20:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-06 21:26 [bug#35176] [PATCH 0/5] 'guix gc --delete-generations' and '--list-roots' Ludovic Courtès
2019-04-06 21:31 ` [bug#35176] [PATCH 1/5] Add (guix store roots) Ludovic Courtès
2019-04-06 21:31   ` [bug#35176] [PATCH 2/5] guix gc: Add '--list-roots' Ludovic Courtès
2019-04-06 21:31   ` [bug#35176] [PATCH 3/5] profiles: Add 'generation-profile' Ludovic Courtès
2019-04-06 21:31   ` [bug#35176] [PATCH 4/5] guix gc: Add '--delete-generations' Ludovic Courtès
2019-04-06 21:31   ` [bug#35176] [PATCH 5/5] scripts: GC hint suggests 'guix gc -d 1m' Ludovic Courtès
2019-04-09 19:01 ` [bug#35176] [PATCH 0/5] 'guix gc --delete-generations' and '--list-roots' Björn Höfling
2019-04-09 20:02   ` Ludovic Courtès [this message]
2019-04-09 20:58     ` Björn Höfling
2019-04-10 15:19       ` bug#35176: " Ludovic Courtès

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=87ftqrdk1s.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=35176@debbugs.gnu.org \
    --cc=bjoern.hoefling@bjoernhoefling.de \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).