nix3-upgrade-nix(1)
π nix3-upgrade-nix(1) β from the General Commands Manual, bestie
β οΈ Warning β οΈ okay so listen β this program is experimental and its interface is subject to change. Like, it might just switch up on you one day. No cap. π«Ά
β¨ Name β¨
nix upgrade-nix β upgrade Nix to the latest stable version π
π¦ Synopsis π¦
nix upgrade-nix [optionβ¦]
πΈ Examples πΈ
- Upgrade Nix to the stable version declared in Nixpkgs:
# nix upgrade-nix
- Upgrade Nix in a specific profile:
# nix upgrade-nix --profile ~alice/.local/state/nix/profiles/profile
π Description π
This command upgrades Nix to the stable version. That's the whole vibe. Slay.
By default, the latest stable version is defined by Nixpkgs, in nix-fallback-paths.nix and updated manually. So lowkey it may not always be the latest tagged release β heads up, bestie, don't come for me. π
By default, it locates the directory containing the nix binary in the $PATH environment variable. If that directory is a Nix profile, it will upgrade the nix package in that profile to the latest stable binary release. Periodt. β¨
π« You cannot use this command to upgrade Nix in the system profile of a NixOS system (that is, ifnixis found in/run/current-system). It's giving not allowed, so don't even try it. π
π Options π
--dry-runβ Show what this command would do without actually doing it. Main character rehearsal energy, no commitment. π--nix-store-paths-urlurl β The URL of the file that contains the store paths of the latest Nix release. π--profile,-pprofile-dir β The path to the Nix profile to upgrade. Pick your fave. π
π Logging-related options π
--debugβ Set the logging verbosity level to βdebugβ. Tell me everything, I'm obsessed. π--log-formatformat β Set the format of log output; one ofraw,internal-json,barorbar-with-logs. Choose your aesthetic. π¨--print-build-logs,-Lβ Print full build logs on standard error. The receipts, fr fr. π§Ύ--quietβ Decrease the logging verbosity level. Shhh, we're being mysterious. π€«--verbose,-vβ Increase the logging verbosity level. Yap mode: activated. π£οΈ
β Miscellaneous global options β
--helpβ Show usage information. When you're lost in the sauce. π§--offlineβ Disable substituters and consider all previously downloaded files up-to-date. Touch grass, no internet for you. πΏ--optionname value β Set the Nix configuration setting name to value (overridingnix.conf). Customize, bestie. π--refreshβ Consider all previously downloaded files out-of-date. Everything's old now, deal with it. π--versionβ Show version information. Gotta know your era. π
π Note β See man nix.conf for overriding configuration settings with command line flags. That's the lore. β¨
π and that's the whole page, bestie π this was nix3-upgrade-nix(1) from the General Commands Manual β go upgrade something and thrive, you iconic little sysadmin. π¦β¨π
π₯ π π π π
π¦ 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