mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 12:33:50 +02:00
Add the nix-env for common
This commit is contained in:
parent
f9c0e57262
commit
745a0ddca7
1 changed files with 39 additions and 0 deletions
39
pages/common/nix-env.md
Normal file
39
pages/common/nix-env.md
Normal file
|
@ -0,0 +1,39 @@
|
|||
# nix-env
|
||||
|
||||
> Manipulate or query Nix user environments
|
||||
|
||||
- Show available package with name or without name
|
||||
|
||||
`nix-env -qa {{pkg_name}}`
|
||||
|
||||
- Show the status of available packages
|
||||
|
||||
`nix-env -qas`
|
||||
|
||||
- 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`
|
||||
|
||||
- Rollback changes
|
||||
|
||||
`nix-env --rollback`
|
||||
|
||||
- List all profiles
|
||||
|
||||
`nix-env --list-generations`
|
||||
|
||||
- Switch to specific profile
|
||||
|
||||
`nix-env --switch-generation {{profile_number}}`
|
Loading…
Add table
Reference in a new issue