[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to prevent incomplete build results from being garbage collected
From: |
zimoun |
Subject: |
Re: How to prevent incomplete build results from being garbage collected? |
Date: |
Thu, 28 Apr 2022 11:05:06 +0200 |
Hi,
On Sat, 16 Apr 2022 at 13:32, James Thomas <jimjoe@gmx.net> wrote:
> Mykola Nikishov wrote:
>> #+begin_example
>> guix build <PACKAGE>
>> guix gc
>> guix build <PACKAGE>
>> #+end_example
[...]
> guix shell -D <package> -r <path>
In addition, you could use “guix gc -F 10G” or whatever space you would
like to reclaim. Because “guix gc” delete all dead items whereas the
option ’-F’ (or ’-C’) tries to determine which items based on dates (I
guess).
Sometimes, I also do:
for item in $(guix gc --list-dead | grep <filter>)
do
guix gc -D $item
done
and you can pipe instead of for-looping. :-)
Hope that helps,
simon