mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 18:56:16 +02:00
869 B
869 B
R""(
Examples
-
Upgrade all packages that were installed using an unlocked flake reference:
# nix profile upgrade --all
-
Upgrade a specific package by name:
# nix profile upgrade hello
-
Upgrade all packages that include 'vim' in their name:
# nix profile upgrade --regex '.*vim.*'
Description
This command upgrades a previously installed package in a Nix profile, by fetching and evaluating the latest version of the flake from which the package was installed.
Warning
This only works if you used an unlocked flake reference at installation time, e.g.
nixpkgs#hello
. It does not work if you used a locked flake reference (e.g.github:NixOS/nixpkgs/13d0c311e3ae923a00f734b43fd1d35b47d8943a#hello
), since in that case the "latest version" is always the same.
)""