How to Upgrade to Fedora 42 from Fedora 41

Upgrading the Fedora system from one release version to the next release version is a very important process that is critical for users and system administrators. The new release version of Fedora, Fedora 42, is fully packed with a set of interesting new features, enhanced performance capabilities, and a list of new software packages that all users must familiarize themselves with to ensure that they can keep their work running at the highest possible level of efficiency.

Assuming you are already using Fedora 41 and you intend to upgrade to the new release version, Fedora 42, it is highly advisable that you follow this step-by-step tech tutorial carefully, as doing so will ensure a smooth and error-free experience when upgrading to the new release.

Prerequisites

  1. Please make sure that your system meets the following requirements before proceeding with the upgrade:
  2. Backup Your Files: It is never incorrect to backup your crucial files and data before you proceed with the upgrade process. You can use utility tools like rsync, Deja Dup, or external disks for backing up your important files.
  3. Upgrade Fedora 41: Your system must be updated fully to the recent Fedora 41 packages prior to the upgrade. It is in order for the process not to experience any issues since old packages may lead to conflicts.
  4. Ensure Sufficient Disk Space: You need disk space, especially while downloading new packages. Ensure that in your system, there is enough disk space for about 10-15 GB.
  5. Utilize the dnf check command in an effort to make sure your current system is problem-free.

Now, run the following commands to ensure that your system is in line with the prerequisites:

sudo dnf update --refresh
sudo dnf upgrade --refresh
sudo dnf check

Step 1: Install the dnf System Upgrade Plugin

Fedora provides an incredibly handy plugin in the form of the dnf system upgrade plugin, which really makes the whole process of system upgrade much easier and simpler.

Use the following command to install the plugin:

sudo dnf install dnf-plugin-system-upgrade

This plugin specifically aims to improve and streamline the process of upgrading by undertaking the task of dealing with all the dependencies, downloading any necessary packages in an efficient manner, and skillfully managing the installation process as a whole.

Step 2: Download Fedora 42 Packages

At this stage, having installed all the necessary tools that you will need for the steps that follow, it is now the right time to go ahead with the downloading process for the Fedora 42 packages. For the sake of completing the process, you should run the command given below:

sudo dnf system-upgrade download --releasever=42 --allowerasing
  • --releasever=42: This command requests the dnf package manager to prepare for the upcoming upgrade process that will bring the system up to Fedora release 42.
  • --allowerasing: This option gives the dnf package manager the ability to remove packages that are likely to conflict or be incompatible with the new version of Fedora. You might want to use this option if you are okay with the possibility of conflicting packages being automatically removed from your system for the sake of a smoother upgrade.

The system will look for any available updates and download all the packages necessary for the installation of Fedora 42. It may take a while based on your internet connection and the count of packages.

Sample Output:

Then Agree to import the Fedora 42 GPG key:

If any errors occur in this stage (e.g., missing repositories or conflicting packages), follow the error messages in order to solve them before continuing

Step 3: Perform the Upgrade

Once the upgrade download is complete, it’s time to reboot your system and trigger the upgrade process. Run the following command:

sudo dnf system-upgrade reboot

This will reboot your machine into the upgrade process running in a console terminal. The dnf system-upgrade tool will begin installing the downloaded Fedora 42 packages. The system will then follow the following steps in order to update the packages, including removing the old packages and adding new packages.

Agree to reboot when prompted:

The upgrade process begins. Be patient, it may take a while:

Step 4: Reboot into Fedora 42

Once the upgrade process completes, your system will reboot a second time into the updated release version of Fedora Linux. This reboot will complete the upgrade to Fedora 42.

After the system has restarted, you can ensure the update is complete by checking the Fedora version.

sudo cat /etc/os-release

Step 5: Post-Upgrade Cleanup

Fedora retires packages in every release. Reasons may be many; the packages get outdated, the upstream project may die, or the maintainer might leave. Fedora doesn’t carry those packages any further; yet, they still manage to live on your system. The packages won’t be updated. It is very strongly suggested that you remove them.

Run the following commands to remove these packages from your system:

sudo dnf install remove-retired-packages
remove-retired-packages

You can also remove duplicate packages with the following command:

sudo dnf remove --duplicates

Conclusion

Upgrading from Fedora 41 to Fedora 42 is actually an almost simple and straightforward process if you use the dnf system upgrade tool, specifically for the said process. Following all the steps below with extreme care, you can be assured that your system gets all the new features, crucial security updates, and optimizations that the new release brings along.

Happy upgrading, and enjoy the new features in Fedora 42!

More guides:

Join our Linux and open source community. Subscribe to our newsletter for tips, tricks, and collaboration opportunities!

Recent Post

Unlock the Right Solutions with Confidence

At CloudSpinx, we don’t just offer services - we deliver clarity, direction, and results. Whether you're navigating cloud adoption, scaling infrastructure, or solving DevOps challenges, our seasoned experts help you make smart, strategic decisions with total confidence. Let us turn complexity into opportunity and bring your vision to life.

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Post

Introducing RHEL 10: What’s New in Red Hat Enterprise Linux 10 Over the years, Red Hat Enterprise Linux (RHEL) has […]

Fedora is a community-built operating system that runs on desktop computers, laptops, servers, cloud computing, edge devices, and pretty much […]

LibreOffice is a powerful office suite for Linux users, just like Microsoft Office for Windows operating system users. It is […]

Let's Connect

Unleash the full potential of your business with CloudSpinx. Our expert solutions specialists are standing by to answer your questions and tailor a plan that perfectly aligns with your unique needs.
You will get a response from our solutions specialist within 12 hours
We understand emergencies can be stressful. For immediate assistance, chat with us now

Contact CloudSpinx today!

Download CloudSpinx Profile

Discover the full spectrum of our expertise and services by downloading our detailed Company Profile. Simply enter your first name, last name, and email address.