LinuxCommandLibrary

nix3-profile

Install, update and remove packages from Nix profiles.

TLDR

Install some packages from nixpkgs into the default profile

$ nix profile install [nixpkgs#pkg1 nixpkgs#pkg2 ...]
copy


Install a package from a flake on GitHub into a custom profile
$ nix profile install [github:owner/repo/pkg] --profile [./path/to/directory]
copy


List packages currently installed in the default profile
$ nix profile list
copy


Remove a package installed from nixpkgs from the default profile, by name
$ nix profile remove [legacyPackages.x86_64-linux.pkg]
copy


Upgrade packages in the default to the latest available versions
$ nix profile upgrade
copy


Rollback (cancel) the latest action on the default profile
$ nix profile rollback
copy

Copied to clipboard