tldr/pages/common/nix-env.md

28 lines
381 B
Markdown
Raw Normal View History

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