Skip to content
Search Fedora

    Browse this documentation

    Upgrade between Fedora releases with system-upgrade

    A Fedora “upgrade” is a release upgrade (for example F43 → F44), not the kind of major-version migration you do in the EL family. The official docs list three paths, and picking the wrong one is not “discouraged” — it is unsupported.

    The official upgrade docs split the paths by scenario:

    ScenarioOfficially recommended path
    Fedora Workstation (GNOME)the graphical upgrade in GNOME Software (click the notification, or use the Updates panel)
    Fedora KDE Plasma Desktop”Upgrade Now” in KDE Discover
    Every other install (including Server, minimal and custom)the DNF System Upgrade plugin (command line)

    The official docs make these three steps prerequisites; do not skip them:

    1. Back up your data. The official wording is that problems are “extremely unlikely”, but a backup is still required first;
    2. Read the Release Notes for the target release to catch important changes and known issues;
    3. Update the current system to the latest. On the graphical path, click Refresh → Download → Restart & Update and finish all updates for the current release before upgrading. The official docs call this step “really important, please do not skip this step”.

    The command-line flow: download, reboot, install, reboot again

    Section titled “The command-line flow: download, reboot, install, reboot again”

    dnf system-upgrade works in three stages, and understanding them matters for troubleshooting:

    1. Download the new release’s packages while the system is running normally (the system stays usable);
    2. Reboot into a special environment (implemented as a systemd target) that performs the install;
    3. Reboot again into the new release once the install finishes.

    In other words, the upgrade does not complete inside your current running system but in a transitional environment after the reboot — that is the biggest difference from “replacing packages in place”, and it explains why an interrupted upgrade cannot simply be re-run.

    The command comes from different places depending on the DNF major version:

    • Fedora 41 and later default to DNF5, where system-upgrade is built in;
    • On DNF4 it is provided by the dnf-plugin-system-upgrade plugin.

    For the distribution-specific flow (--releasever=, GPG key import, keeping the cache and so on), see the official docs: Upgrading Fedora using the DNF system upgrade.

    If the system misbehaves after an upgrade, first check whether the rescue entry still works: the rescue kernel is created by Anaconda at install time, and while the initramfs follows kernel updates, the rescue kernel does not necessarily. The official fix is to regenerate it:

    Terminal window
    sudo rm /boot/*rescue*
    sudo kernel-install add "$(uname -r)" "/lib/modules/$(uname -r)/vmlinuz"

    You can also install dracut-config-rescue, which keeps the rescue kernel maintained automatically when dracut generates the initrd.

    When you need to boot the previous kernel, point the default entry at it with grubby:

    Terminal window
    sudo ls /boot | grep vmlinuz
    sudo grubby --set-default /boot/vmlinuz-<version>.<release>.<arch>

    The official docs separate “DNF system upgrade (recommended for other installs)” from “upgrading with the package manager” as two different paths, so first confirm which path you are on:

    1. Confirm the path: graphical upgrade (GNOME Software / Discover) or the command-line plugin? The failure points differ.
    2. Confirm the stage: did it fail during the download or during the install after reboot? The former can simply be retried (use --setopt=keepcache=1 to keep the cache if needed); the latter needs the logs from the transitional environment.
    3. Do not fall back to a manual dnf upgrade: that is the unsupported method described above, and it turns a failed upgrade into an unsupported mixed state.
    4. For a systematic investigation, go back to the target release’s Release Notes and the upgrade chapter of the official Quick Docs.