LinuxCommandLibrary

nix

package manager CLI

TLDR

Search packages

$ nix search nixpkgs [package]
copy
Run package
$ nix run nixpkgs#[package]
copy
Build derivation
$ nix build
copy
Enter development shell
$ nix develop
copy
Show flake info
$ nix flake show
copy
Update flake
$ nix flake update
copy
Evaluate expression
$ nix eval --expr "[1 + 1]"
copy
Garbage collect
$ nix store gc
copy

SYNOPSIS

nix [command] [options]

DESCRIPTION

nix is the Nix package manager CLI. It provides reproducible package management.
The tool handles builds and environments. Supports flakes for reproducibility.

PARAMETERS

COMMAND

Nix subcommand.
search QUERY
Search packages.
run INSTALLABLE
Run a package.
build
Build derivation.
develop
Enter dev shell.
flake ACTION
Flake operations.
--help
Display help information.

CAVEATS

Steep learning curve. Nix expression language. Requires Nix installation.

HISTORY

Nix was created by Eelco Dolstra as his PhD thesis project, first released in 2003.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community