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
Upgrading Fedora 39 Workstation to Fedora 40 Workstation (GNOME Software):
- Open GNOME Software: Launch the GNOME Software application.
- Navigate to Updates: Select the "Updates" tab.
- Initiate Download: Locate "Fedora Linux 40 Available" and click "Download."
- Restart and Upgrade: After the download, restart your system and follow the on-screen prompts. You'll be asked for your sudo password.
Upgrading Fedora 39 Server to Fedora 40 Server:
-
Update Fedora Server: Update your server using
sudo dnf --refresh update
andsudo dnf upgrade
, followed by a reboot. -
Install DNF Plugin: Install the
dnf-plugin-system-upgrade
plugin:sudo dnf install dnf-plugin-system-upgrade
. -
Download Upgrade Packages: Run
sudo dnf system-upgrade download --releasever=40
(orsudo dnf system-upgrade download --releasever=40 --allowerasing
if dependencies are unsatisfied). -
Reboot and Upgrade: Execute
sudo dnf system-upgrade reboot
to initiate the upgrade. -
Verify Upgrade: After the upgrade, confirm the new version using
cat /etc/fedora-release
.
Post-Upgrade Tasks (Workstation & Server):
-
Change Hostname:
sudo hostnamectl set-hostname fedora40
-
Clean DNF Metadata:
sudo dnf system-upgrade clean
andsudo dnf clean packages
-
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-*)
, andsudo dnf autoremove
to remove unnecessary packages. Exercise caution when removing packages. -
Clean Up Retired Packages:
sudo dnf install remove-retired-packages
andremove-retired-packages
-
Update Configuration Files:
sudo dnf install rpmconf
andsudo rpmconf -a
-
Clean Up Old Kernels (Caution!):
sudo dnf remove $(dnf repoquery --installonly --latest-limit=-3)
(Keep at least two kernels). -
Remove Broken Symlinks:
sudo symlinks -r /usr | grep dangling
(to find) andsudo symlinks -r -d /usr
(to remove). -
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!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Built on Chrome’s V8 engine, Node.JS is an open-source, event-driven JavaScript runtime environment crafted for building scalable applications and backend APIs. NodeJS is known for being lightweight and efficient due to its non-blocking I/O model and

Linuxcanrunonmodesthardwarewithspecificminimumrequirements.A1GHzprocessor(x86orx86_64)isneeded,withadual-coreCPUrecommended.RAMshouldbeatleast512MBforcommand-lineuseor2GBfordesktopenvironments.Diskspacerequiresaminimumof5–10GB,though25GBisbetterforad

A VPN (Virtual Private Network) is an encrypted tunnel that extends over a public network. It allows users to securely browse and access resources over an internet connection with utmost privacy and confidentiality. [ You might also like: 13 Best VPN

With the shift in focus from the CentOS project to CentOS Stream, which will now serve as the upstream for RHEL, several CentOS alternatives have been proposed to replace CentOS 8.For a long time, CentOS has been widely adopted by small businesses an

Confirm the target hard disk device name (such as /dev/sda) to avoid accidentally deleting the system disk; 2. Use sudoddif=/dev/zeroof=/dev/sdXbs=1Mstatus=progress to overwrite the zero value in full disk, which is suitable for most scenarios; 3. Use sudoshred-v-n3/dev/sdX for three random data overwrites to ensure that it cannot be restored; 4. Optionally execute sudobadblocks-wsv/dev/sdX for destructive write tests; finally use sudohexdump-C/dev/sdX|head to verify whether it is all zero and complete safe erasing.

Deepin OS represents a significant evolution in Linux distributions. Let me clarify—I might have exaggerated slightly with "revolutionary," but honestly, it's been a while since I've encountered a Linux distro that truly impressed me.Specif

We always need to check the speed of the Internet connection at home and office. What do we do about this? Go to websites like Speedtest.net and begin the test. It loads JavaScript in the web browser and then selects the best server based upon ping a

Port Knocking is a nifty technique of controlling access to a port by only allowing legitimate users access to the service running on a server. It works in such a way that when the right sequence of connection attempts is made, the firewall gladly op
