From 92e832348db13637875c4f529ed0aa83d3d34493 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 10 Feb 2004 16:14:47 +0000 Subject: * Lots of manual stuff. Reference pages for most Nix commands. * nix-pull now requires the full url to the manifest, i.e., `/MANIFEST/' is no longer automatically appended. * nix-prefetch-url works again. --- doc/manual/nix-collect-garbage.xml | 75 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 doc/manual/nix-collect-garbage.xml (limited to 'doc/manual/nix-collect-garbage.xml') diff --git a/doc/manual/nix-collect-garbage.xml b/doc/manual/nix-collect-garbage.xml new file mode 100644 index 000000000000..8ff741e2212a --- /dev/null +++ b/doc/manual/nix-collect-garbage.xml @@ -0,0 +1,75 @@ + + + nix-collect-garbage + determine the set of unreachable store paths + + + + + nix-collect-garbage + + + + + + + Description + + + The command nix-collect-garbage determines + the paths in the Nix store that are garbage, that is, not + reachable from outside of the store. These paths can be safely + deleted without affecting the integrity of the system. + + + + + + Options + + + + + + + + Causes the set of reachable paths to + be printed, rather than the unreachable paths. These are + the paths that may not be deleted. + + + + + + + + + Causes nix-collect-garbage not to + follow successor relations. By default, if a derivation + store expression is reachable, its successor (i.e., a + closure store expression) is also considered to be + reachable. This option is always safe, but garbage + collecting successors may cause undesirable rebuilds later + on. + + + + + + + + + + Examples + + + To delete all unreachable paths, do the following: + + +$ nix-collect-garbage | xargs nix-store --delete + + + + + + -- cgit 1.4.1