From: Christopher Lemmer Webber <cwebber@dustycloud.org>
To: Guillaume Le Vaillant <glv@posteo.net>
Cc: help-guix@gnu.org
Subject: Re: Best way to delete system profile generations?
Date: Fri, 10 Jul 2020 10:23:16 -0400 [thread overview]
Message-ID: <87d053a1pn.fsf@dustycloud.org> (raw)
In-Reply-To: <87fta07jh2.fsf@yamatai>
Guillaume Le Vaillant writes:
> Christopher Lemmer Webber <cwebber@dustycloud.org> skribis:
>
>> Hello! I wonder what others do to delete their system profile
>> generations? Here are some paths I know about.
>>
>> Path one: using the command line manually
>>
>> # Look at which profiles are available
>> ls -l /var/guix/profiles/
>> # Remove them manually
>> rm /var/guix/profiles/system-{9,10,11}-link
>>
>> Path two: using emacs, but you gotta do it as root so:
>>
>> # start up emacs as root, with the system generations listed:
>> sudo -E emacs -nw -q --eval "(progn (require 'guix) (guix-system-generations))"
>>
>> # Now you can browse the generations with more information available,
>> # decide with a bit more care which ones to remove.
>> # Mark each one you want to remove with "D", and delete with "x".
>>
>> Is there a better way? What do others do? It doesn't seem there's a
>> good way to delete from my current emacs session because it requires
>> root privileges.
>>
>> guix-mode remains great, btw!
>>
>> - Chris
>
> There is the "guix system delete-generations ..." command which I think
> does what you're looking for.
Ah, I didn't know about that command somehow! Thank you!
prev parent reply other threads:[~2020-07-10 14:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-09 16:04 Best way to delete system profile generations? Christopher Lemmer Webber
2020-07-09 16:15 ` Guillaume Le Vaillant
2020-07-10 14:23 ` Christopher Lemmer Webber [this message]
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=87d053a1pn.fsf@dustycloud.org \
--to=cwebber@dustycloud.org \
--cc=glv@posteo.net \
--cc=help-guix@gnu.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).