From Fedora Project Wiki

Description

This tests the DNF 5 system-upgrade command.

Setup

Install Fedora 39/40 and fully upgrade the system using sudo dnf upgrade --refresh.

How to test

  1. Make sure these steps are completed.
  2. First, install DNF 5: sudo dnf install dnf5.

Then, upgrade Fedora with DNF 5. Use these commands to ensure you have latest packages in the current release, run the system upgrade, and reboot into the upgraded system:

  1. sudo dnf5 upgrade --refresh
  2. sudo dnf5 system-upgrade download --releasever=40 (if F40 is base then F41 should be the --releasever value)
  3. sudo dnf5 system-upgrade status
  4. sudo dnf5 system-upgrade reboot

Expected Results

  • The dnf5 package is installed successfully
  • The system upgrade files are successfully downloaded
  • system-upgrade status shows that an offline transaction is stored
  • The system reboots and the upgrade begins. Systems with graphical boot (with Plymouth) show an "Upgrading System" screen with a progress bar.
  • The upgrade completes successfully and the system reboots
  • After reboot, the system has been upgraded to Fedora 40