2003-11-18 11:38:25 +00:00
|
|
|
nix-store [OPTIONS...] [ARGUMENTS...]
|
|
|
|
|
|
|
|
`nix-store' is a tool to manipulate the Nix store.
|
2003-07-28 12:19:23 +00:00
|
|
|
|
|
|
|
Operations:
|
|
|
|
|
2005-01-25 11:18:03 +00:00
|
|
|
--realise / -r: ensure path validity; if a derivation, ensure that
|
|
|
|
validity of the outputs
|
2003-07-28 12:19:23 +00:00
|
|
|
--add / -A: copy a path to the Nix store
|
|
|
|
--query / -q: query information
|
|
|
|
|
2004-02-14 21:44:18 +00:00
|
|
|
--substitute: register a substitute expression (dangerous!)
|
2005-01-19 14:36:00 +00:00
|
|
|
--clear-substitutes: clear all substitutes
|
2004-02-14 21:44:18 +00:00
|
|
|
--validpath: register path validity (dangerous!)
|
|
|
|
--isvalid: check path validity
|
2003-07-28 12:19:23 +00: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 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-01-25 11:18:03 +00:00
|
|
|
--referers: print all paths directly refering to the given path
|
|
|
|
--referers-closure: print all paths (in)directly refering to the given path
|
2003-07-28 12:19:23 +00:00
|
|
|
--graph: print a dot graph rooted at given ids
|
|
|
|
|
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
|
|
|
|
|
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
|