Upgrading Fedora from the CLI

  1. Make sure the system is fully up to date: dnf --refresh upgrade
  2. Download the updated packages: dnf system-upgrade download --refresh --releasever=39 (replace with the current version as applicable)
  3. Trigger the upgrade process (will immediately reboot the system): dnf system-upgrade reboot

For more details, see https://docs.fedoraproject.org/en-US/quick-docs/dnf-system-upgrade/

Post-upgrade

  1. Go through the release notes: https://docs.fedoraproject.org/en-US/fedora/latest/release-notes/
  2. Remove retired packages, which no longer receive any updates: remove-retired-packages
  3. Check for packages with broken dependencies (should return none): dnf repoquery --unsatisfied

For more details, see https://docs.fedoraproject.org/en-US/quick-docs/dnf-system-upgrade/#sect-optional-post-upgrade-tasks