nix3-profile-upgrade(1)
π nix3-profile-upgrade(1) π
okay bestie, we're in the General Commands Manual and today's main character is nix profile upgrade β literally the glow-up button for your Nix profile π«Ά
β οΈ Warning β this program is experimental and its interface is subject to change. (yes, it can and will switch up on you, no cap.)
β¨ Name β¨
nix profile upgrade β upgrade packages using their most recent flake πΈ
π¦ Synopsis π¦
nix profile upgrade [optionβ¦] elementsβ¦
π 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.*'
- Show what packages would be upgraded, without actually upgrading:
# nix profile upgrade --all --dry-run
π 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. it's giving "go get your fresh fit" π₯
β οΈ 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. locked = the vibe is frozen in time, periodt π
π Options π
--allβ match all packages in the profile. the whole squad π--dry-runβ show what this command would do without doing it. window shopping only, bestie ποΈ--profilepath β the profile to operate on.--regexpattern β a regular expression to match one or more packages in the profile.
π§ Common evaluation options π§
--argname expr β pass the value expr as the argument name to Nix functions.--arg-from-filename path β pass the contents of file path as the argument name to Nix functions.--arg-from-stdinname β pass the contents of stdin as the argument name to Nix functions.--argstrname string β pass the string string as the argument name to Nix functions.--debuggerβ start an interactive environment if evaluation fails. (it's giving "call a friend" π)--eval-storestore-url β the URL of the Nix store to use for evaluation, i.e. to store derivations (.drvfiles) and inputs referenced by them.--impureβ allow access to mutable paths and repositories.--include,-Ipath β add path to search path entries used to resolve lookup paths.
This option may be given multiple times.
Paths added through -I take precedence over the nix-path configuration setting and the NIX_PATH environment variable.
--override-flakeoriginal-ref resolved-ref β override the flake registries, redirecting original-ref to resolved-ref.
βοΈ Common flake-related options βοΈ
--commit-lock-fileβ commit changes to the flake's lock file.--inputs-fromflake-url β use the inputs of the specified flake as registry entries.--no-registriesβ don't allow lookups in the flake registries.
DEPRECATED β use --no-use-registries instead. (old news, bestie, move on π)
--no-update-lock-fileβ do not allow any updates to the flake's lock file.--no-write-lock-fileβ do not write the flake's newly generated lock file.--output-lock-fileflake-lock-path β write the given lock file instead offlake.lockwithin the top-level flake.--override-inputinput-path flake-url β override a specific flake input (e.g.dwarffs/nixpkgs). The input-path must not be empty. This implies--no-write-lock-file.--recreate-lock-fileβ recreate the flake's lock file from scratch.
DEPRECATED β use nix flake update instead.
--reference-lock-fileflake-lock-path β read the given lock file instead offlake.lockwithin the top-level flake.--update-inputinput-path β update a specific flake input (ignoring its previous entry in the lock file).
DEPRECATED β use nix flake update instead.
π’ Logging-related options π’
--debugβ set the logging verbosity level to 'debug'. (the tea is PIPING β)--log-formatformat β set the format of log output; one ofraw,internal-json,barorbar-with-logs.--print-build-logs,-Lβ print full build logs on standard error.--quietβ decrease the logging verbosity level. π€«--verbose,-vβ increase the logging verbosity level. π£οΈ
π Miscellaneous global options π
--helpβ show usage information.--offlineβ disable substituters and consider all previously downloaded files up-to-date.--optionname value β set the Nix configuration setting name to value (overridingnix.conf).--refreshβ consider all previously downloaded files out-of-date.--repairβ during evaluation, rewrite missing or corrupted files in the Nix store. During building, rebuild missing or corrupted store paths.--versionβ show version information.
π Options that change the interpretation of installables π
--exprexpr β interpret installables as attribute paths relative to the Nix expression expr.--file,-ffile β interpret installables as attribute paths relative to the Nix expression stored in file. If file is the character-, then a Nix expression is read from standard input. Implies--impure.
Note β see man nix.conf for overriding configuration settings with command line flags.
and that's the whole page, bestie!! no skips, no shortcuts, all 40-ish options accounted for π this was nix3-profile-upgrade(1) from the General Commands Manual β catching you in the group chat, mwah ππβ¨
π¦ where this page comes from
- fedora 44: nix-core 2.35.3-2.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms