[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Best way to delete system profile generations?
From: |
Christopher Lemmer Webber |
Subject: |
Re: Best way to delete system profile generations? |
Date: |
Fri, 10 Jul 2020 10:23:16 -0400 |
User-agent: |
mu4e 1.4.9; emacs 26.3 |
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!