Upgrading Fedora from the CLI
- Make sure the system is fully up to date:
dnf --refresh upgrade
- Download the updated packages:
dnf system-upgrade download --refresh --releasever=39
(replace with the current version as applicable) - 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
- Go through the release notes: https://docs.fedoraproject.org/en-US/fedora/latest/release-notes/
- Remove retired packages, which no longer receive any updates:
remove-retired-packages
- 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