1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 21:42:08 +02:00
tldr/pages/common/nix.md
2019-06-04 16:29:40 -03:00

24 lines
521 B
Markdown

# nix
> Utilities for the Nix language and store.
> More information: <https://nixos.org>.
- Search for a package via its name or description:
`nix search {{search_term}}`
- Start a Nix shell with the specified packages available:
`nix run {{nixpkgs.pkg1 nixpkgs.pkg2 nixpkgs.pkg3...}}`
- Optimise Nix store disk usage by combining duplicate files:
`nix optimise-store`
- Start an interactive environment for evaluating Nix expressions:
`nix repl`
- Upgrade Nix to the latest stable version:
`nix upgrade-nix`