Examples (6)
Install packages from nixpkgs into the default profile
nix profile add nixpkgs#pkg1 nixpkgs#pkg2 ...Install a package from a flake on GitHub into a custom profile
nix profile add github:owner/repo/pkg --profile path/to/directoryList packages currently installed in the default profile
nix profile listRemove a package installed from nixpkgs from the default profile, by name
nix profile remove legacyPackages.x86_64-linux.pkgUpgrade packages in the default profile to the latest available versions
nix profile upgrade --allRollback (cancel) the latest action on the default profile
nix profile rollbackmade by @shridhargupta | data from tldr-pages