unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Guillaume Le Vaillant <glv@posteo.net>
To: Christopher Lemmer Webber <cwebber@dustycloud.org>
Cc: help-guix@gnu.org
Subject: Re: Best way to delete system profile generations?
Date: Thu, 09 Jul 2020 18:15:37 +0200	[thread overview]
Message-ID: <87fta07jh2.fsf@yamatai> (raw)
In-Reply-To: <87mu48brpl.fsf@dustycloud.org>

[-- Attachment #1: Type: text/plain, Size: 1100 bytes --]


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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

  reply	other threads:[~2020-07-09 16:16 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 [this message]
2020-07-10 14:23   ` Christopher Lemmer Webber

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=87fta07jh2.fsf@yamatai \
    --to=glv@posteo.net \
    --cc=cwebber@dustycloud.org \
    --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).