diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2019-04-06 22:29:18 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2019-04-10 17:09:47 +0200 |
| commit | bacf980c76c94e7bda86220ca4bf662d0e34a45a (patch) | |
| tree | cc5a7f09074b6b9d26e017d1a6d3c532722968cd /doc | |
| parent | 72eda0624be89ed18302fd7d7f22976071ab020c (diff) | |
guix gc: Add '--list-roots'.
* guix/scripts/gc.scm (show-help, %options): Add '--list-roots'.
(guix-gc)[list-roots]: New procedure.
Handle '--list-roots'.
* tests/guix-gc.sh: Test it.
* doc/guix.texi (Invoking guix gc): Document it.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/guix.texi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 2f9fcbe3bf8..2345617b2e8 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -3385,7 +3385,7 @@ deleted. The set of garbage collector roots (``GC roots'' for short) | |||
| 3385 | includes default user profiles; by default, the symlinks under | 3385 | includes default user profiles; by default, the symlinks under |
| 3386 | @file{/var/guix/gcroots} represent these GC roots. New GC roots can be | 3386 | @file{/var/guix/gcroots} represent these GC roots. New GC roots can be |
| 3387 | added with @command{guix build --root}, for example (@pxref{Invoking | 3387 | added with @command{guix build --root}, for example (@pxref{Invoking |
| 3388 | guix build}). | 3388 | guix build}). The @command{guix gc --list-roots} command lists them. |
| 3389 | 3389 | ||
| 3390 | Prior to running @code{guix gc --collect-garbage} to make space, it is | 3390 | Prior to running @code{guix gc --collect-garbage} to make space, it is |
| 3391 | often useful to remove old generations from user profiles; that way, old | 3391 | often useful to remove old generations from user profiles; that way, old |
| @@ -3451,6 +3451,10 @@ This prints nothing unless the daemon was started with | |||
| 3451 | @option{--cache-failures} (@pxref{Invoking guix-daemon, | 3451 | @option{--cache-failures} (@pxref{Invoking guix-daemon, |
| 3452 | @option{--cache-failures}}). | 3452 | @option{--cache-failures}}). |
| 3453 | 3453 | ||
| 3454 | @item --list-roots | ||
| 3455 | List the GC roots owned by the user; when run as root, list @emph{all} the GC | ||
| 3456 | roots. | ||
| 3457 | |||
| 3454 | @item --clear-failures | 3458 | @item --clear-failures |
| 3455 | Remove the specified store items from the failed-build cache. | 3459 | Remove the specified store items from the failed-build cache. |
| 3456 | 3460 | ||
