keepcalculator

06 Numbers and Powers

Fedora Upgrade Guide: Step-by-Step

Card No. 06·87761 · Updated · Standard formula, shown below

This guide explains how to upgrade your Fedora Linux system to the next release version using the official supported methods. You will learn the two main upgrade paths — the GNOME Software GUI method and the command-line dnf system-upgrade tool — along with preparation steps, troubleshooting, and post-upgrade checks.

Before You Start: Backup and Prep

Upgrading a major release (e.g., Fedora 40 to 41) is a significant change. The most important step is backing up your data. Even though upgrades are generally smooth, a power failure or a broken mirror can leave your system in an inconsistent state. Copy your home directory, configuration files in /etc, and any service data to an external drive or cloud storage. If you use a laptop, ensure it is plugged in and has at least 50% battery. Also, free up disk space: the upgrade needs room for new packages, and the old kernel and packages are kept until the next cleanup. A good rule of thumb is to have at least 10–15 GB free, though the exact amount depends on your installed packages.

Before upgrading, update your current system completely:

  1. Open a terminal and run sudo dnf upgrade --refresh.
  2. Reboot if the kernel or systemd was updated.
  3. Check for orphaned or broken packages with sudo dnf autoremove and sudo dnf check.

Also, verify that your hardware meets the new release’s minimum requirements. Fedora’s official documentation lists these for each release, but in practice, if your system runs the current version, it will likely run the next one.

Method 1: Upgrade via GNOME Software (GUI)

If you use the default GNOME desktop, the simplest way is through the Software app. When a new Fedora release is available, a banner appears in the Software center. Click it, then click “Download” – the system will download the upgrade packages in the background. Once downloaded, you’ll be prompted to restart; the upgrade runs during the reboot and can take 20–60 minutes depending on your hardware and internet speed.

This method is safe because it uses the same underlying dnf system-upgrade tool, but it handles the download and reboot automatically. If you don’t see the banner, make sure your current system is fully updated, then wait a few days – Fedora staggers the rollout to avoid overload. You can also force it by running sudo dnf install fedora-release after a full update, but that’s not officially recommended.

Method 2: Command-Line Upgrade with dnf system-upgrade

For users comfortable with the terminal, the command-line method gives more control and is the only option for non-GNOME desktops (KDE, XFCE, etc.). The tool is dnf system-upgrade, part of the dnf-plugin-system-upgrade package. Install it first:

sudo dnf install dnf-plugin-system-upgrade

Then follow these steps:

  1. Download the new release packages: sudo dnf system-upgrade download --releasever=41 (replace 41 with your target version). This step also checks for dependency problems.
  2. If the download completes without errors, begin the upgrade with sudo dnf system-upgrade reboot.
  3. The system reboots into a text-mode upgrade process. Do not interrupt it. After it finishes, your system boots into the new Fedora version.

If you get dependency errors during the download step, fix them before rebooting. Common fixes include removing third-party repositories (like RPM Fusion) temporarily, or running sudo dnf repoquery --installonly to check for old kernels. You can abort the process with sudo dnf system-upgrade clean and try again after resolving the issues.

Which Method Should You Choose?

Both methods are officially supported and produce the same result. The GUI method is easier for beginners because it automates everything. The command-line method is better if you want to see exactly what is happening, if you need to troubleshoot dependency issues, or if you manage multiple machines. There is no difference in the final system state – both use the same package manager and the same upgrade mechanism.

One thing to note: if you use a custom desktop environment or have many third-party packages, the command-line method is often more transparent because it shows you the full transaction before you commit. The GUI method hides the details, which is fine for most users but can be frustrating if something goes wrong and you don’t know why.

Common Problems and How to Fix Them

Even with a smooth upgrade, occasional issues arise. Here are the most frequent ones:

  • Dependency conflicts: Usually caused by third-party repositories not yet updated for the new release. Temporarily disable them with sudo dnf config-manager --set-disabled <repo-id>, then re-enable after the upgrade.
  • “Cannot find a valid baseurl for repo”: This happens when a repository URL points to a version that no longer exists. Update your repository files or remove obsolete repos.
  • Upgrade fails during reboot: If the system hangs or shows an error, you can often recover by booting into the previous kernel from the GRUB menu and running sudo dnf system-upgrade clean to start over.
  • Broken packages after upgrade: Run sudo dnf distro-sync to align installed packages with the new repositories, then sudo dnf update.
  • Missing firmware or drivers: Some proprietary drivers (NVIDIA, for example) may need reinstallation after a major upgrade. Check the vendor’s documentation.

If you encounter a problem that seems specific to your hardware, search the Fedora forums or the Fedora wiki – the community maintains a list of known issues for each release. Do not hesitate to ask for help; provide the output of dnf system-upgrade log or journalctl -b -1 to get accurate advice.

Post-Upgrade Steps

After the system boots into the new version, do a few checks to ensure everything is healthy:

  1. Verify the version with cat /etc/fedora-release (should show the new number).
  2. Run sudo dnf distro-sync to ensure all packages match the new repositories.
  3. Run sudo dnf autoremove to remove old kernels and orphaned packages.
  4. Check for leftover configuration files with sudo dnf repoquery --extras – these are usually harmless, but you can review them.
  5. Reboot once more to confirm the system starts cleanly.

Also, check your desktop environment and applications. Some extensions (GNOME Shell extensions, for example) may break after a major upgrade because they are tied to specific versions. Disable or update them as needed. If you use Flatpaks, they are usually unaffected, but you can run flatpak update to get the latest versions.

Frequently Asked Questions

Can I skip a version and upgrade from Fedora 39 to 41 directly? No, official support is for upgrading one version at a time (e.g., 39→40→41). Skipping is not supported and can cause dependency issues. If you are two versions behind, upgrade to the intermediate version first.

How long does a Fedora upgrade take? The download depends on your internet speed and the number of packages (typically 1–3 GB). The installation/reboot phase takes 20–60 minutes on most systems. In total, plan for about an hour.

Will my third-party repositories (RPM Fusion, Google Chrome, etc.) work after the upgrade? Most are updated within a few days after a Fedora release. If they break, check the repository’s website for instructions to enable the new release repository. For RPM Fusion, you can use sudo dnf install rpmfusion-free-release-41 (adjust the version number) after the upgrade.

What if I run out of disk space during the upgrade? The upgrade process checks for free space before starting. If you get an error, clean up with sudo dnf autoremove, remove old kernels with sudo dnf remove --oldinstallonly, or move large files to an external drive. You need at least 10–15 GB free, but more is safer.

Is it better to do a fresh install instead of upgrading? A fresh install gives you a clean system without old configuration files, but you lose your installed applications and settings unless you back them up. Upgrading preserves your setup and is generally reliable. If your system has many custom configurations or you’ve been using it for years, a fresh install might be cleaner, but it’s a personal choice. For most users, upgrading works well.

Can I go back to the previous version after upgrading? There is no official downgrade path. If you want to revert, you would need to reinstall the previous version from scratch. That’s why backing up before upgrading is essential.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →