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-11-12 23:56:37 +00:00
|
|
|
--delete-generations GENERATIONS...: deleted listed generations,
|
|
|
|
`old' for all non-current generations
|
2004-02-08 14:07:43 +00:00
|
|
|
|
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
|
|
|
|
|
2004-02-09 11:59:39 +00:00
|
|
|
Install / upgrade / uninstall flags:
|
|
|
|
|
|
|
|
--dry-run: show what would be done, but don't do it
|
|
|
|
|
|
|
|
Upgrade flags:
|
|
|
|
|
|
|
|
--lt: upgrade unless the current version is older (default)
|
|
|
|
--leq: upgrade unless the current version is older or current
|
|
|
|
--always: upgrade regardless of current version
|
|
|
|
|
2003-12-01 15:55:05 +00:00
|
|
|
Query types:
|
|
|
|
|
|
|
|
--name: print derivation names (default)
|
2005-02-11 16:56:45 +00:00
|
|
|
--drv-path: print path of derivation
|
|
|
|
--out-path: print path of derivation output
|
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
|
2004-11-12 23:56:37 +00:00
|
|
|
--preserve-installed: do not replace currently installed versions in `-i'
|
|
|
|
--system-filter SYSTEM: only use derivations for specified platform
|