Skip to content
Mehdi Kababfrontend / author
⁠The notebook

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.

⁠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:

shell
sudo dnf5 upgrade --offline

Next, reboot into the offline update environment:

shell
sudo dnf5 offline reboot

Tip

Add --poweroff to the last command to apply the offline updates and shut down your machine instead of rebooting it.

bash
--poweroff

To inspect the result afterward:

bash
sudo dnf5 offline log --number=-1

Upgrade to a New Fedora Release

For a major release upgrade, use the dedicated workflow instead:

bash
sudo dnf5 --refresh upgrade
sudo dnf5 system-upgrade download --releasever=<target-version>
sudo dnf5 system-upgrade reboot

system-upgrade download checks and downloads the target release’s packages before rebooting to apply them.