unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Best way to delete system profile generations?
@ 2020-07-09 16:04 Christopher Lemmer Webber
  2020-07-09 16:15 ` Guillaume Le Vaillant
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Lemmer Webber @ 2020-07-09 16:04 UTC (permalink / raw)
  To: help-guix

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Best way to delete system profile generations?
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Guillaume Le Vaillant @ 2020-07-09 16:15 UTC (permalink / raw)
  To: Christopher Lemmer Webber; +Cc: help-guix

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Best way to delete system profile generations?
  2020-07-09 16:15 ` Guillaume Le Vaillant
@ 2020-07-10 14:23   ` Christopher Lemmer Webber
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Lemmer Webber @ 2020-07-10 14:23 UTC (permalink / raw)
  To: Guillaume Le Vaillant; +Cc: help-guix

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!


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-10 14:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).