Apply Fedora updates offline with DNF
dnf5 can stage a transaction while Fedora runs, then apply it at reboot. Kernel and systemd updates stop fighting running processes for files.
- Lire cet article en français
- English
Dandified YUM 5 (DNF5) can stage a package transaction while Fedora is running, then execute it during reboot in a minimal offline environment. This reduces interference from processes using files that the transaction needs to replace. Useful for kernel, systemd, and other core package updates.
Apply Updates Offline
Firstly, we have to resolve and stage the transaction:
sudo dnf5 upgrade --offlineNext, reboot into the offline update environment:
sudo dnf5 offline rebootTip
Add --poweroff to the last command to apply the offline updates and shut down your machine instead of rebooting it.
--poweroffTo inspect the result afterward:
sudo dnf5 offline log --number=-1Upgrade to a New Fedora Release
For a major release upgrade, use the dedicated workflow instead:
sudo dnf5 --refresh upgrade
sudo dnf5 system-upgrade download --releasever=<target-version>
sudo dnf5 system-upgrade rebootsystem-upgrade download checks and downloads the target release’s packages before rebooting to apply them.
