mirror of
https://github.com/NixOS/nix.git
synced 2025-11-30 06:01:00 +01:00
* Support the --attr / -A flag in nix-env as well. So now we can do,
e.g., $ nix-env -i -A subversion xorg.xorgserver The main advantage over using symbolic names is that using attribute names is unambiguous and much, much faster.
This commit is contained in:
parent
7a3a5d1608
commit
5744dd5480
3 changed files with 27 additions and 3 deletions
|
|
@ -28,6 +28,15 @@ Install / upgrade / uninstall flags:
|
|||
|
||||
--dry-run: show what would be done, but don't do it
|
||||
|
||||
Installation sources:
|
||||
|
||||
--from-expression / -E EXPR...: evaluate expressions specified on
|
||||
the command line; expressions should be functions that take the
|
||||
default Nix expression as an argument
|
||||
--from-profile PROFILE NAMES...: copy named packages from PROFILE
|
||||
--attr / -A ATTRS...: select attributes by name from the default Nix
|
||||
expression
|
||||
|
||||
Upgrade flags:
|
||||
|
||||
--lt: upgrade if the current version is older (default)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue