Hi community,
https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-offline/
recommends "dnf system-upgrade reboot" but after
dnf system-upgrade download --releasever=42 the output states "dnf5 offline reboot"
to perform the upgrade.
What's th correct command to use?
Happy weekend, Frank
On Sat, Apr 26, 2025, at 11:20 AM, Frank Elsner via users wrote:
Hi community,
https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-offline/
recommends "dnf system-upgrade reboot" but after
dnf system-upgrade download --releasever=42 the output states "dnf5 offline reboot"
to perform the upgrade.
What's th correct command to use?
Both are correct. As that page says, one downloads the packages and the other reboots into a shell that performs the upgrade.
Frank Elsner via users writes:
Hi community,
https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-offline/
recommends "dnf system-upgrade reboot" but after
dnf system-upgrade download --releasever=42 the output states "dnf5 offline reboot"
to perform the upgrade.
What's th correct command to use?
"dnf system-upgrade reboot" was used in dnf4 and earlier.
After running dnf system-upgrade download you'll get an additional prompt to do "dnf5 offline reboot". That's what I did, but I'm fairly certain that either command will work.
On Sat, Apr 26, 2025, at 12:14 PM, Sam Varshavchik wrote:
"dnf system-upgrade reboot" was used in dnf4 and earlier.
After running dnf system-upgrade download you'll get an additional prompt to do "dnf5 offline reboot". That's what I did, but I'm fairly certain that either command will work.
Ah! Good catch. Since the page was talking about the upgrade to F42 I figured that it was fully up to date. Forgot about the change in the command.
I just started an upgrade of a virtual machine to see what it will do if given the older command...
doug@Fat41:~$ sudo dnf system-upgrade reboot [sudo] password for doug: The system will now reboot to upgrade to release version 42. Is this ok [y/N]:
Yup, as you suspected, it does work with either the old or new command.