tldr/pages/common/nix-env.md

32 lines
407 B
Markdown

# nix-env
> Manipulate or query Nix user environments.
- List all installed packages:
`nix-env -q`
- Query installed packages:
`nix-env -q {{search_term}}`
- Query available packages:
`nix-env -qa {{search_term}}`
- Install package:
`nix-env -i {{pkg_name}}`
- Uninstall package:
`nix-env -e {{pkg_name}}`
- Upgrade one package:
`nix-env -u {{pkg_name}}`
- Upgrade all packages:
`nix-env -u`