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