nix-profile
manages user package profiles in Nix
TLDR
List installed packages
$ nix profile list
Install package$ nix profile install [nixpkgs#hello]
Remove package$ nix profile remove [hello]
Upgrade packages$ nix profile upgrade '.*'
Rollback profile$ nix profile rollback
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
sudo dnf install nix
sudo pacman -S nix
sudo apk add nix
sudo zypper install nix
nix profile install nixpkgs#nix