From Fedora Project Wiki

Description

This tests the DNF 5 system-upgrade command.

Setup

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

How to test

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:

   sudo dnf5 upgrade --refresh
   sudo dnf5 system-upgrade download --releasever=40
   sudo dnf5 system-upgrade status
   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