2006-03-06 13:04:39 +02:00
|
|
|
Usage: nix-store [OPTIONS...] [ARGUMENTS...]
|
2003-11-18 13:38:25 +02:00
|
|
|
|
|
|
|
`nix-store' is a tool to manipulate the Nix store.
|
2003-07-28 15:19:23 +03:00
|
|
|
|
|
|
|
Operations:
|
|
|
|
|
2005-01-25 13:18:03 +02:00
|
|
|
--realise / -r: ensure path validity; if a derivation, ensure that
|
|
|
|
validity of the outputs
|
2003-07-28 15:19:23 +03:00
|
|
|
--add / -A: copy a path to the Nix store
|
2005-12-23 23:08:42 +02:00
|
|
|
--delete: safely delete paths from the Nix store
|
2003-07-28 15:19:23 +03:00
|
|
|
--query / -q: query information
|
|
|
|
|
2005-04-08 16:48:41 +03:00
|
|
|
--register-substitutes: register a substitute expression (dangerous!)
|
2005-01-19 16:36:00 +02:00
|
|
|
--clear-substitutes: clear all substitutes
|
2005-03-23 13:25:20 +02:00
|
|
|
--register-validity: register path validity (dangerous!)
|
|
|
|
--check-validity: check path validity
|
2003-07-28 15:19:23 +03:00
|
|
|
|
2006-09-21 22:06:34 +03:00
|
|
|
--gc: run the garbage collector
|
|
|
|
|
2003-07-28 15:19:23 +03:00
|
|
|
--dump: dump a path as a Nix archive
|
|
|
|
--restore: restore a path from a Nix archive
|
|
|
|
|
|
|
|
--init: initialise the Nix database
|
|
|
|
--verify: verify Nix structures
|
|
|
|
|
|
|
|
--version: output version information
|
|
|
|
--help: display help
|
|
|
|
|
|
|
|
Query flags:
|
|
|
|
|
2005-01-19 16:36:00 +02: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 23:04:48 +02: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 17:57:46 +02: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 15:19:23 +03:00
|
|
|
|
2005-01-25 13:18:03 +02: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 22:06:34 +03: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 15:19:23 +03:00
|
|
|
Options:
|
|
|
|
|
|
|
|
--verbose / -v: verbose operation (may be repeated)
|
2003-08-19 12:04:47 +03:00
|
|
|
--keep-failed / -K: keep temporary directories of failed builds
|
2005-02-01 14:36:25 +02:00
|
|
|
|
|
|
|
--add-root: add garbage collector roots for the result
|