From: ludo@gnu.org (Ludovic Courtès)
To: bug-guix@gnu.org
Subject: guix-gc
Date: Sun, 06 Jan 2013 00:57:00 +0100 [thread overview]
Message-ID: <8738yfp4j7.fsf@gnu.org> (raw)
Commit fe8ff02 adds a ‘guix-gc’ command to invoke the GC, similar to
part of the ‘nix-store’ command. Below is a copy of the manual.
Comments welcome!
Ludo’.
Packages that are installed but not used may be "garbage-collected".
The `guix-gc' command allows users to explicitly run the garbage
collector to reclaim space from the `/nix/store' directory.
The garbage collector has a set of known "roots": any file under
`/nix/store' reachable from a root is considered "live" and cannot be
deleted; any other file is considered "dead" and may be deleted. The
set of garbage collector roots includes default user profiles, and may
be augmented with `guix-build --root', for example (*note Invoking
guix-build::).
The `guix-gc' command has three mode of operations: it can be used
to garbage-collect any dead files (the default), to delete specific
files (the `--delete' option), or to print garbage-collector
information. The available options are listed below:
`--collect-garbage[=MIN]'
`-C [MIN]'
Collect garbage--i.e., unreachable `/nix/store' files and
sub-directories. This is the default operation when no option is
specified.
When MIN is given, stop once MIN bytes have been collected. MIN
may be a number of bytes, or it may include a unit as a suffix,
such as `MiB' for mebibytes and `GB' for gigabytes.
When MIN is omitted, collect as much garbage as possible.
`--delete'
`-d'
Attempt to delete all the store files and directories specified as
arguments. This fails if some of the files are not in the store,
or if they are still live.
`--list-dead'
Show the list of dead files and directories still present in the
store--i.e., files and directories no longer reachable from any
root.
`--list-live'
Show the list of live store files and directories.
next reply other threads:[~2013-01-05 23:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-05 23:57 Ludovic Courtès [this message]
2013-01-10 10:04 ` guix-gc Andreas Enge
2013-01-10 12:40 ` guix-gc Ludovic Courtès
2013-01-19 13:00 ` guix-gc Andreas Enge
2013-01-22 21:56 ` guix-gc Ludovic Courtès
2013-01-26 13:58 ` guix-gc Andreas Enge
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8738yfp4j7.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=bug-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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.