DNF5-SYSTEM-UPGRADE(8)
π DNF5-SYSTEM-UPGRADE β the glow-up page π
okay so this is dnf5-system-upgrade, part of the dnf5 manual, and bestieβ¦ this is THE page for giving your whole system a major glow-up. new major release era. let's go β¨
πΈ NAME πΈ
dnf5-system-upgrade β the System-Upgrade Command. it does what it says on the tin, no cap.
π¦ SYNOPSIS π¦
dnf5 system-upgrade <subcommand> [options]
β¨ DESCRIPTION β¨
so the system-upgrade command is literally how you upgrade your system to a new major release. it works in two acts, like a two-part season finale:
- first, the
downloadsubcommand pulls down all the packages while your system is running normally. business as usual, vibes intact. - then, the
rebootsubcommand reboots the system into a minimal "offline" environment to actually apply the upgrades. that's the main character moment.
dnf5 system-upgrade is a recommended way to upgrade a system to a new major release. but before you proceed, pls pls pls make sure your system is fully upgraded first, using:
dnf5 --refresh upgrade
also fyi: system-upgrade shares many subcommands with the offline subcommand. see dnf5-offline(8), Offline command <#offline-command-ref-label> for the tea on those. iykyk π«Ά
π SUBCOMMANDS π
cleanβ seednf5-offline(8), Offline command<#offline-command-ref-label>. it's an offline-command situation, go read that page bestie.downloadβ downloads all packages needed to upgrade to a new major release, and also checks that they can be installed. the "are we actually gonna be able to do this" vibe check. π₯logβ seednf5-offline(8), Offline command<#offline-command-ref-label>. again, offline page, go look.rebootβ seednf5-offline(8), Offline command<#offline-command-ref-label>. yes, also the offline page. they're sharing, it's cute.
π OPTIONS π
--releasever=<version>β Required. this is the version you're upgrading TO. it sets$releaseverin all enabled repos. usually it's a number, orrawhide. you literally cannot skip this one, it's giving mandatory.--no-downgradeβ behave likednf5 update: do not install packages from the new release if they're older than what's currently installed. this is the opposite of the default behavior, which behaves likednf5 distro-syncβ always installing packages from the new release, even if they're older than the currently-installed version. so default = new release wins, always. this flag = nah, keep the newer thing.--allowerasingβ allow removing of installed packages so any potential dependency problems can be resolved. sometimes you gotta let things go for the plot to progress. π--number=<boot number>β seednf5-offline(8), Offline command<#offline-command-ref-label>. offline page, babes.--poweroffβ seednf5-offline(8), Offline command<#offline-command-ref-label>. yep, also the offline page.
π ENVIRONMENT π
see dnf5-offline(8), Offline command <#offline-command-ref-label>. that's it, that's the whole section, it's all living over there.
π§ EXAMPLES π§
Typical upgrade usage
the classic three-step routine, iconic behavior:
dnf5 --refresh upgrade
dnf5 system-upgrade download --releasever 40
dnf5 system-upgrade reboot
Show logs from last upgrade attempt
when you need to know what happened last time, detective mode activated:
dnf5 system-upgrade log --number=-1
π SEE ALSO π
dnf5-offline(8), Offline command<#offline-command-ref-label><https://www.freedesktop.org/wiki/Software/systemd/SystemUpdates>
π Author
see AUTHORS.md in the dnf5 source distribution. the girlies who built this π
β Copyright
Contributors to the dnf5 project.
heads up bestie:<#offline-command-ref-label>and the other<#...-ref-label>bits are literally in the original text, so they're staying exactly as-is. no editing, no inventing, that's the rule. π
okay that's the whole page, you're fully caught up. this one shipped in the dnf5 manual dated Sep 24, 2026, and it's giving extremely useful. go upgrade something. slay. ππΈ
π¦ where this page comes from
- fedora 44: dnf5 5.4.6.0-1.fc44 Β· GPL-2.0-or-later
- fedora 44: dnf5 5.4.6.0-1.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms