Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

41
nix-env Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# nix-env
> Manipulate or query Nix user environments.
> More information: <https://nixos.org/manual/nix/stable/#sec-nix-env>.
- 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 -iA nixpkgs.{{pkg_name}}`
- Install a package from a URL:
`nix-env -i {{pkg_name}} --file {{example.com}}`
- Uninstall package:
`nix-env -e {{pkg_name}}`
- Upgrade one package:
`nix-env -u {{pkg_name}}`
- Upgrade all packages:
`nix-env -u`