From 806b91f1040d75ca5331445272ecc46adac1c9ef Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 7 Apr 2005 08:17:04 +0000 Subject: * GC docs. --- doc/manual/nix-collect-garbage.xml | 100 ++++++++++--------------------------- 1 file changed, 26 insertions(+), 74 deletions(-) (limited to 'doc/manual/nix-collect-garbage.xml') diff --git a/doc/manual/nix-collect-garbage.xml b/doc/manual/nix-collect-garbage.xml index dc84cd803..3e4ab0925 100644 --- a/doc/manual/nix-collect-garbage.xml +++ b/doc/manual/nix-collect-garbage.xml @@ -1,77 +1,29 @@ - - nix-collect-garbage - remove unreachable store paths - + + + nix-collect-garbage + delete unreachable store paths + + + + + nix-collect-garbage + + + + + + + + + +Description + +The command nix-collect-garbage is an +obsolete wrapper around nix-store +--gc. + + - - - nix-collect-garbage - - - - - age - - - - - Description - - - The command nix-collect-garbage performs a - garbage collection on the Nix store: any paths in the Nix store - that are garbage (not reachable from a set of root store - expressions) are deleted. - - - - The roots of the garbage collector are the store expressions - mentioned in the files in the directory - prefix/var/nix/gcroots. - By default, the roots are all user environments in - prefix/var/nix/profiles. - You can register other store expressions as roots by writing the - full path of the store expression to an arbitrary file in the - gcroots directory (or a subdirectory - thereof). - - - - - - Options - - - - - / - - - These options cause the set of live or dead paths to be - printed, respectively, rather than performing an actual - garbage collector. They correspond exactly with the - sub-operations in nix-store - . - - - - - - - - - - Examples - - - To delete all unreachable paths, just do: - - -$ nix-collect-garbage - - - - - -- cgit v1.2.3