unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: James Thomas <jimjoe@gmx.net>, Mykola Nikishov <mn@mn.com.ua>
Cc: help-guix@gnu.org
Subject: Re: How to prevent incomplete build results from being garbage collected?
Date: Thu, 28 Apr 2022 11:05:06 +0200	[thread overview]
Message-ID: <86ee1hefy5.fsf@gmail.com> (raw)
In-Reply-To: <87ilr9sbfu.fsf@gmx.net>

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


      reply	other threads:[~2022-04-28  9:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-10  7:34 How to prevent incomplete build results from being garbage collected? Mykola Nikishov
2022-04-16  8:02 ` James Thomas
2022-04-28  9:05   ` zimoun [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=86ee1hefy5.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=jimjoe@gmx.net \
    --cc=mn@mn.com.ua \
    /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).