2015-10-30 06:20:12 +03:00
|
|
|
# nix-env
|
|
|
|
|
2016-01-25 02:15:17 +03:00
|
|
|
> Manipulate or query Nix user environments.
|
2015-10-30 06:20:12 +03:00
|
|
|
|
2016-01-25 02:15:17 +03:00
|
|
|
- Show available package with name or without name:
|
2015-10-30 06:20:12 +03:00
|
|
|
|
|
|
|
`nix-env -qa {{pkg_name}}`
|
|
|
|
|
2016-01-25 02:15:17 +03:00
|
|
|
- Show the status of available packages:
|
2015-10-30 06:20:12 +03:00
|
|
|
|
2016-01-25 02:15:17 +03:00
|
|
|
`nix-env -qas`
|
2015-10-30 06:20:12 +03:00
|
|
|
|
2016-01-25 02:15:17 +03:00
|
|
|
- Install package:
|
2015-10-30 06:20:12 +03:00
|
|
|
|
|
|
|
`nix-env -i {{pkg_name}}`
|
|
|
|
|
2016-01-25 02:15:17 +03:00
|
|
|
- Uninstall package:
|
2015-10-30 06:20:12 +03:00
|
|
|
|
|
|
|
`nix-env -e {{pkg_name}}`
|
|
|
|
|
2016-01-25 02:15:17 +03:00
|
|
|
- Upgrade one package:
|
2015-10-30 06:20:12 +03:00
|
|
|
|
|
|
|
`nix-env -u {{pkg_name}}`
|
|
|
|
|
2016-01-25 02:15:17 +03:00
|
|
|
- Upgrade all packages:
|
2015-10-30 06:20:12 +03:00
|
|
|
|
|
|
|
`nix-env -u`
|