2003-12-01 17:55:05 +02:00
|
|
|
nix-env [OPTIONS...] [ARGUMENTS...]
|
|
|
|
|
|
|
|
`nix-env' is a tool to manipulate Nix user environments.
|
|
|
|
|
|
|
|
Operations:
|
|
|
|
|
2004-01-05 18:26:43 +02:00
|
|
|
--install / -i: add derivations to the user environment
|
|
|
|
--upgrade / -u: upgrade derivation in the user environment
|
2003-12-22 01:58:56 +02:00
|
|
|
--uninstall / -e: remove derivations from the user environment
|
2003-12-01 17:55:05 +02:00
|
|
|
--query / -q: perform a query on an environment or Nix expression
|
|
|
|
|
|
|
|
The previous operations take a list of derivation names. The special
|
|
|
|
name `*' may be used to indicate all derivations.
|
|
|
|
|
2004-02-06 12:30:20 +02:00
|
|
|
--switch-profile / -S [FILE]: switch to specified profile
|
2004-01-05 18:26:43 +02:00
|
|
|
--import / -I FILE: set default Nix expression
|
2004-01-05 13:18:59 +02:00
|
|
|
|
2003-12-01 17:55:05 +02:00
|
|
|
--version: output version information
|
|
|
|
--help: display help
|
|
|
|
|
|
|
|
Query types:
|
|
|
|
|
|
|
|
--name: print derivation names (default)
|
2004-02-02 12:51:54 +02:00
|
|
|
--expr: print derivation store expression
|
2003-12-01 17:55:05 +02:00
|
|
|
--status / -s: print installed/present status
|
|
|
|
|
|
|
|
Query sources:
|
|
|
|
|
|
|
|
--installed: use installed derivations (default)
|
2004-01-05 18:26:43 +02:00
|
|
|
--available / -a: use derivations available in Nix expression
|
2003-12-01 17:55:05 +02:00
|
|
|
|
|
|
|
Options:
|
|
|
|
|
2004-02-06 12:30:20 +02:00
|
|
|
--profile / -p LINK: use specified profile instead of target of ~/.nix-profile
|
2004-01-05 18:26:43 +02:00
|
|
|
--file / -f FILE: use Nix expression FILE for installation, etc.
|
2003-12-01 17:55:05 +02:00
|
|
|
--verbose / -v: verbose operation (may be repeated)
|
|
|
|
--keep-failed / -K: keep temporary directories of failed builds
|