From fdec72c6cc720be899431c32f99221e8c4b88cd0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 25 Aug 2004 15:39:13 +0000 Subject: * `nix-collect-garbage' now actually performs a garbage collection, it doesn't just print the set of paths that should be deleted. So there is no more need to pipe the result into `nix-store --delete' (which doesn't even exist anymore). --- doc/manual/nix-store.xml | 70 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 58 insertions(+), 12 deletions(-) (limited to 'doc/manual/nix-store.xml') diff --git a/doc/manual/nix-store.xml b/doc/manual/nix-store.xml index a3fcad063..febe02fd4 100644 --- a/doc/manual/nix-store.xml +++ b/doc/manual/nix-store.xml @@ -135,17 +135,18 @@ - Operation <option>--delete</option> + Operation <option>--gc</option> Synopsis nix-store + + + - - paths @@ -153,19 +154,64 @@ Description - The operation unconditionally deletes the - paths paths from the Nix store. It is an - error to attempt to delete paths outside of the store. + The operation performs a garbage + collection on the Nix store. What it does specifically is + determined by the sub-operation, which is one of the + following: + + + + + + + + + This operation prints on standard output the set of + live store paths, which are all the store + paths reachable from a set of root store + expressions read from standard input. Live paths should + never be deleted, since that would break consistency + — it would become possible that applications are + installed that reference things that are no longer + present in the store. + + + + + + + + + This operation prints out on standard output the set of + dead store paths, which is just the + opposite of the set of live paths: any path in the store + that is not live (with respect to the roots) is dead. + + + + + + + + + This operation performs an actual garbage collection. + All dead paths are removed from the store. + + + + + + + + The set of root store expressions is read from standard input. + Each line should contain exactly one store path. - This operation should almost never be called directly, since no - attempt is made to verify that no references exist to the paths to - be deleted. Therefore, careless deletion can result in an - inconsistent system. Deletion of paths in the store is done by the - garbage collector (which uses to delete - unreferenced paths). + You generally will want to use the command + nix-collect-garbage, which figures out + the roots and then calls this command automatically. -- cgit v1.2.3