Home >System Tutorial >LINUX >How To Upgrade to Fedora 40 From Fedora 39
Fedora 40: A Smooth Upgrade Guide from Fedora 39
Fedora, renowned for its cutting-edge features and robust stability, has unveiled its latest iteration: Fedora 40. This guide provides a comprehensive walkthrough for upgrading from Fedora 39 to Fedora 40, covering both Workstation and Server editions.
Before commencing the upgrade, let's highlight the key enhancements in Fedora 40.
Fedora 40 Key Features:
Prerequisites:
Prior to upgrading, ensure you have:
Upgrade Limitations:
Fedora supports direct upgrades to the next release (e.g., 39 to 40) and skipping one release (e.g., 38 to 40). Upgrades spanning more than two releases are not officially supported. For optimal results, follow the recommended upgrade path. Always upgrade before your current Fedora version reaches its End of Life (EOL).
Updating Fedora 39:
Before upgrading, update your Fedora 39 installation:
sudo dnf --refresh update sudo dnf upgrade sudo reboot
Verify your current version:
cat /etc/fedora-release cat /etc/os-release
Upgrading Fedora 39 Workstation to Fedora 40 Workstation (GNOME Software):
Upgrading Fedora 39 Server to Fedora 40 Server:
sudo dnf --refresh update
and sudo dnf upgrade
, followed by a reboot.dnf-plugin-system-upgrade
plugin: sudo dnf install dnf-plugin-system-upgrade
.sudo dnf system-upgrade download --releasever=40
(or sudo dnf system-upgrade download --releasever=40 --allowerasing
if dependencies are unsatisfied).sudo dnf system-upgrade reboot
to initiate the upgrade.cat /etc/fedora-release
.Post-Upgrade Tasks (Workstation & Server):
sudo hostnamectl set-hostname fedora40
sudo dnf system-upgrade clean
and sudo dnf clean packages
sudo dnf update
, sudo dnf repoquery --unsatisfied
, sudo dnf repoquery --duplicates
, sudo dnf list extras
, sudo dnf remove $(sudo dnf repoquery --extras --exclude=kernel,kernel-*)
, and sudo dnf autoremove
to remove unnecessary packages. Exercise caution when removing packages.sudo dnf install remove-retired-packages
and remove-retired-packages
sudo dnf install rpmconf
and sudo rpmconf -a
sudo dnf remove $(dnf repoquery --installonly --latest-limit=-3)
(Keep at least two kernels).sudo symlinks -r /usr | grep dangling
(to find) and sudo symlinks -r -d /usr
(to remove).sudo reboot
Conclusion:
This guide details upgrading to Fedora 40 from Fedora 39. Remember to perform post-upgrade cleanup tasks. Regular updates are crucial for security and optimal performance. Consult Fedora's official documentation for further assistance.
The above is the detailed content of How To Upgrade to Fedora 40 From Fedora 39. For more information, please follow other related articles on the PHP Chinese website!