Home >System Tutorial >LINUX >How To Upgrade to Fedora 40 From Fedora 39

How To Upgrade to Fedora 40 From Fedora 39

尊渡假赌尊渡假赌尊渡假赌
尊渡假赌尊渡假赌尊渡假赌Original
2025-03-18 09:06:11718browse

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:

  • GNOME 46: Experience the latest GNOME desktop environment, boasting improved Files app functionality and enhanced accessibility across core applications.
  • Enhanced Settings App: The Settings app in GNOME 46 offers streamlined navigation via keyboard shortcuts, a modernized interface, faster appearance settings loading, and improved Wacom stylus support. A new system panel simplifies access to Region & Language, Date & Time, Remote Desktop, and About settings.
  • Improved Touchpad Controls: GNOME 46 provides updated touchpad settings with new "Secondary Click" options (two-finger or corner-click).
  • KDE Plasma 6.0: Alongside GNOME 46, Fedora 40 offers the alternative KDE Plasma 6.0 desktop environment.
  • Linux Kernel 6.8: Benefit from performance boosts and new features powered by the Linux 6.8 kernel.
  • Updated Software: Enjoy updates to numerous software packages, including LLVM 18 and the inclusion of PyTorch, a leading deep learning framework.

Prerequisites:

Prior to upgrading, ensure you have:

  • Data Backup: Back up your crucial data to prevent potential loss.
  • Stable Internet Connection: A reliable internet connection is essential for downloading upgrade packages.
  • Uninterrupted Power: Maintain a consistent power supply to avoid system instability.
  • Review Known Issues: Check the Fedora 40 release notes for any reported issues.
  • Patience: The upgrade process may take time depending on your system and connection speed.

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

How To Upgrade to Fedora 40 From Fedora 39

Upgrading Fedora 39 Workstation to Fedora 40 Workstation (GNOME Software):

  1. Open GNOME Software: Launch the GNOME Software application.
  2. Navigate to Updates: Select the "Updates" tab.
  3. Initiate Download: Locate "Fedora Linux 40 Available" and click "Download."
  4. Restart and Upgrade: After the download, restart your system and follow the on-screen prompts. You'll be asked for your sudo password.

How To Upgrade to Fedora 40 From Fedora 39 How To Upgrade to Fedora 40 From Fedora 39 How To Upgrade to Fedora 40 From Fedora 39 How To Upgrade to Fedora 40 From Fedora 39 How To Upgrade to Fedora 40 From Fedora 39 How To Upgrade to Fedora 40 From Fedora 39 How To Upgrade to Fedora 40 From Fedora 39 How To Upgrade to Fedora 40 From Fedora 39 How To Upgrade to Fedora 40 From Fedora 39

Upgrading Fedora 39 Server to Fedora 40 Server:

  1. Update Fedora Server: Update your server using sudo dnf --refresh update and sudo dnf upgrade, followed by a reboot.
  2. Install DNF Plugin: Install the dnf-plugin-system-upgrade plugin: sudo dnf install dnf-plugin-system-upgrade.
  3. Download Upgrade Packages: Run sudo dnf system-upgrade download --releasever=40 (or sudo dnf system-upgrade download --releasever=40 --allowerasing if dependencies are unsatisfied).
  4. Reboot and Upgrade: Execute sudo dnf system-upgrade reboot to initiate the upgrade.
  5. Verify Upgrade: After the upgrade, confirm the new version using cat /etc/fedora-release.

Post-Upgrade Tasks (Workstation & Server):

  1. Change Hostname: sudo hostnamectl set-hostname fedora40
  2. Clean DNF Metadata: sudo dnf system-upgrade clean and sudo dnf clean packages
  3. Remove Old Packages: Use 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.
  4. Clean Up Retired Packages: sudo dnf install remove-retired-packages and remove-retired-packages
  5. Update Configuration Files: sudo dnf install rpmconf and sudo rpmconf -a
  6. Clean Up Old Kernels (Caution!): sudo dnf remove $(dnf repoquery --installonly --latest-limit=-3) (Keep at least two kernels).
  7. Remove Broken Symlinks: sudo symlinks -r /usr | grep dangling (to find) and sudo symlinks -r -d /usr (to remove).
  8. Reboot: 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn