2006-03-06 11:04:39 +00:00
|
|
|
Usage: nix-store [OPTIONS...] [ARGUMENTS...]
|
2003-11-18 11:38:25 +00:00
|
|
|
|
|
|
|
`nix-store' is a tool to manipulate the Nix store.
|
2003-07-28 12:19:23 +00:00
|
|
|
|
|
|
|
Operations:
|
|
|
|
|
2008-11-11 14:58:37 +00:00
|
|
|
--realise / -r: ensure path validity; if a derivation, ensure the
|
2005-01-25 11:18:03 +00:00
|
|
|
validity of the outputs
|
2003-07-28 12:19:23 +00:00
|
|
|
--add / -A: copy a path to the Nix store
|
2005-12-23 21:08:42 +00:00
|
|
|
--delete: safely delete paths from the Nix store
|
2003-07-28 12:19:23 +00:00
|
|
|
--query / -q: query information
|
2006-10-28 16:33:54 +00:00
|
|
|
--read-log / -l: print build log of given store paths
|
2003-07-28 12:19:23 +00:00
|
|
|
|
2005-03-23 11:25:20 +00:00
|
|
|
--register-validity: register path validity (dangerous!)
|
|
|
|
--check-validity: check path validity
|
2003-07-28 12:19:23 +00:00
|
|
|
|
2006-09-21 19:06:34 +00:00
|
|
|
--gc: run the garbage collector
|
|
|
|
|
2007-12-10 22:16:47 +00:00
|
|
|
--dump: dump a path as a Nix archive, forgetting dependencies
|
|
|
|
--restore: restore a path from a Nix archive, without
|
|
|
|
registering validity
|
|
|
|
|
|
|
|
--export: export a path as a Nix archive, marking dependencies
|
|
|
|
--import: import a path from a Nix archive, and register as
|
|
|
|
valid
|
2003-07-28 12:19:23 +00:00
|
|
|
|
|
|
|
--init: initialise the Nix database
|
|
|
|
--verify: verify Nix structures
|
2007-10-09 22:14:27 +00:00
|
|
|
--optimise: optimise the Nix store by hard-linking identical files
|
2003-07-28 12:19:23 +00:00
|
|
|
|
|
|
|
--version: output version information
|
|
|
|
--help: display help
|
|
|
|
|
|
|
|
Query flags:
|
|
|
|
|
2005-01-19 14:36:00 +00:00
|
|
|
--outputs: query the output paths of a Nix derivation (default)
|
|
|
|
--requisites / -R: print all paths necessary to realise a path
|
|
|
|
--references: print all paths referenced by the given path
|
2005-12-13 21:04:48 +00:00
|
|
|
--referrers: print all paths directly refering to the given path
|
|
|
|
--referrers-closure: print all paths (in)directly refering to the given path
|
2005-02-17 15:57:46 +00:00
|
|
|
--tree: print a tree showing the dependency graph of the given paths
|
|
|
|
--graph: print a dot graph rooted at given paths
|
2003-07-28 12:19:23 +00:00
|
|
|
|
2005-01-25 11:18:03 +00:00
|
|
|
Query switches (not applicable to all queries):
|
|
|
|
|
|
|
|
--use-output: perform query on output of derivation, not derivation itself
|
|
|
|
--force-realise: realise the path before performing the query
|
|
|
|
--include-outputs: in `-R' on a derivation, include requisites of outputs
|
2006-09-21 19:06:34 +00:00
|
|
|
|
|
|
|
Garbage collector options:
|
|
|
|
|
|
|
|
--print-roots: print GC roots and exit
|
|
|
|
--print-live: print live paths and exit
|
|
|
|
--print-dead: print dead paths and exit
|
|
|
|
--delete: delete dead paths (default)
|
|
|
|
|
2003-07-28 12:19:23 +00:00
|
|
|
Options:
|
|
|
|
|
|
|
|
--verbose / -v: verbose operation (may be repeated)
|
2003-08-19 09:04:47 +00:00
|
|
|
--keep-failed / -K: keep temporary directories of failed builds
|
2005-02-01 12:36:25 +00:00
|
|
|
|
|
|
|
--add-root: add garbage collector roots for the result
|