LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

nix-profile

manages user package profiles in Nix

TLDR

List installed packages
$ nix profile list
copy
Install package
$ nix profile install [nixpkgs#hello]
copy
Remove package
$ nix profile remove [hello]
copy
Upgrade packages
$ nix profile upgrade '.*'
copy
Rollback profile
$ nix profile rollback
copy

SYNOPSIS

nix profile command [options]

DESCRIPTION

nix profile manages user package profiles in Nix. Modern replacement for nix-env. Installs, removes, and upgrades packages with atomic operations and rollback support.

PARAMETERS

list

List installed packages.
install package
Install package.
remove package
Remove package.
upgrade regex
Upgrade matching packages.
rollback
Rollback to previous generation.
history
Show profile history.
diff-closures
Show changes between generations.

INSTALL

sudo apt install nix-bin
copy
sudo dnf install nix
copy
sudo pacman -S nix
copy
sudo apk add nix
copy
sudo zypper install nix
copy
nix profile install nixpkgs#nix
copy

SEE ALSO

nix(1), nix-env(1)

Copied to clipboard
Kai