From 3d55f1eb57c04efc10a093379ea38d6c0aefa588 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 23 Nov 2009 18:16:25 +0000 Subject: * A command `nix-store --query --roots ' to find the garbage collector roots that point (directly or indirectly) to the given paths. --- doc/manual/nix-store.xml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/manual/nix-store.xml b/doc/manual/nix-store.xml index 562a5439a6..566c75bf3e 100644 --- a/doc/manual/nix-store.xml +++ b/doc/manual/nix-store.xml @@ -404,6 +404,7 @@ error: cannot delete path `/nix/store/zq0h41l75vlb4z45kzgjjmsjxvcv1qk7-mesa-6.4' name + @@ -586,12 +587,20 @@ query is applied to the target of the symlink. Prints the SHA-256 hash of the contents of the - store path paths. Since the hash is + store paths paths. Since the hash is stored in the Nix database, this is a fast operation. + + + Prints the garbage collector roots that point, + directly or indirectly, at the store paths + paths. + + + @@ -669,6 +678,18 @@ $ gv graph.ps +Show every garbage collector root that points to a store path +that depends on svn: + + +$ nix-store -q --roots $(which svn) +/nix/var/nix/profiles/default-81-link +/nix/var/nix/profiles/default-82-link +/nix/var/nix/profiles/per-user/eelco/profile-97-link + + + + -- cgit 1.4.1