2003-12-01 15:55:05 +00:00
|
|
|
nix-env [OPTIONS...] [ARGUMENTS...]
|
|
|
|
|
|
|
|
`nix-env' is a tool to manipulate Nix user environments.
|
|
|
|
|
|
|
|
Operations:
|
|
|
|
|
2004-01-05 16:26:43 +00:00
|
|
|
--install / -i: add derivations to the user environment
|
|
|
|
--upgrade / -u: upgrade derivation in the user environment
|
2003-12-21 23:58:56 +00:00
|
|
|
--uninstall / -e: remove derivations from the user environment
|
2003-12-01 15:55:05 +00: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 10:30:20 +00:00
|
|
|
--switch-profile / -S [FILE]: switch to specified profile
|
2004-02-08 14:07:43 +00:00
|
|
|
--switch-generation / -G NUMBER: switch to specified generation of profile
|
|
|
|
--rollback: switch to the previous generation
|
|
|
|
--list-generations: list available generations of a profile
|
|
|
|
|
2004-01-05 16:26:43 +00:00
|
|
|
--import / -I FILE: set default Nix expression
|
2004-01-05 11:18:59 +00:00
|
|
|
|
2003-12-01 15:55:05 +00:00
|
|
|
--version: output version information
|
|
|
|
--help: display help
|
|
|
|
|
|
|
|
Query types:
|
|
|
|
|
|
|
|
--name: print derivation names (default)
|
2004-02-02 10:51:54 +00:00
|
|
|
--expr: print derivation store expression
|
2003-12-01 15:55:05 +00:00
|
|
|
--status / -s: print installed/present status
|
|
|
|
|
|
|
|
Query sources:
|
|
|
|
|
|
|
|
--installed: use installed derivations (default)
|
2004-01-05 16:26:43 +00:00
|
|
|
--available / -a: use derivations available in Nix expression
|
2003-12-01 15:55:05 +00:00
|
|
|
|
|
|
|
Options:
|
|
|
|
|
2004-02-06 10:30:20 +00:00
|
|
|
--profile / -p LINK: use specified profile instead of target of ~/.nix-profile
|
2004-01-05 16:26:43 +00:00
|
|
|
--file / -f FILE: use Nix expression FILE for installation, etc.
|
2003-12-01 15:55:05 +00:00
|
|
|
--verbose / -v: verbose operation (may be repeated)
|
|
|
|
--keep-failed / -K: keep temporary directories of failed builds
|