Fedora 25 was released yesterday. Check the release notes to know what's new in this release and to download the Fedora 25 desktop and server editions. While new users can simply download and install Fedora, those running Fedora 24 may want to upgrade their systems. The Fedora team has made the upgrade task pretty easy and straightforward. This tutorial describes how to upgrade to Fedora 25 from Fedora 24.
I strongly recommend you to backup your important data and configuration files to any external hdd or USB drives to avoid data loss. Also, make sure you have uninterrupted power supply and fast Internet connection.
The upgrade method is same for Fedora desktop and Server editions, and of course you can upgrade your remote Fedora VPS using this method.
Let us find our current Fedora version details. To do so, run:
$ cat /etc/*-release
Fedora release 24 (Twenty Four) NAME=Fedora VERSION="24 (Workstation Edition)" ID=fedora VERSION_ID=24 PRETTY_NAME="Fedora 24 (Workstation Edition)" ANSI_COLOR="0;34" CPE_NAME="cpe:/o:fedoraproject:fedora:24" HOME_URL="https://fedoraproject.org/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Fedora" REDHAT_BUGZILLA_PRODUCT_VERSION=24 REDHAT_SUPPORT_PRODUCT="Fedora" REDHAT_SUPPORT_PRODUCT_VERSION=24 PRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy VARIANT="Workstation Edition" VARIANT_ID=workstation Fedora release 24 (Twenty Four) Fedora release 24 (Twenty Four)
Now, Log in to your Fedora system. Or, you can run the upgrade process locally if you have physical access of it.
I am going to upgrade my remote Fedora 24 desktop, so logged-in to that system as shown below.
$ ssh email@example.com
Here, ostechnix is my remote system's username and 192.168.1.102 is my remote system's IP address.
Run the following commands to update Fedora 23 system:
$ sudo dnf update
$ sudo dnf upgrade
After updating the Fedora system, reboot once to apply all changes.
Now, it's time to start the upgrade task.
Upgrade to Fedora 25 from Fedora 24
Please be mindful that during upgrading your system may crash or disconnect from the SSH session. In such cases, you will probably be disconnected from the SSH session, and you might end up with broken system. To avoid this, we’re going to use “screen” tool that can be used to reconnect to the your Fedora system in-case it is disconnected while upgrading.
Install screen tool using the following command:
$ sudo dnf install screen
Switch to the screen session with command:
In case you’re disconnected from your Fedora system, you can again re-connect to it with the following command:
$ screen -Dr
Next, Install DNF plugin using command:
$ sudo dnf install dnf-plugin-system-upgrade
Now, start upgrade Fedora 25 using the following command:
$ sudo dnf system-upgrade download --releasever=25
The latest packages will start to download in your system. Grab a cup of coffee. It will take a while depending upon your Internet connection speed.
- If some of your packages have unsatisfied dependencies, the upgrade will refuse to continue until you run it again with an extra --allowerasing option. This often happens with packages installed from third-party repositories for which an updated repositories hasn’t been yet published. Please study very careful the output and examine which packages are going to be removed. None of them should be essential for system functionality, but some of them might be important for your productivity.
- In case of unsatisfied dependencies, you can see more details if you add --best option to the command line.
Once all required packages are downloaded, reboot your Fedora to start the upgrade.
To reboot your Fedora system, run:
$ sudo dnf system-upgrade reboot
The actual upgrade process will start now.
After completing the upgrade process, the system will automatically reboot.
Congratulations! Your system has been successfully upgraded to Fedora 25.
Login to your newly upgraded Fedora system.
Here is how Fedora 25 desktop looks like:
Let us check the newly upgraded Fedora desktop version details:
$ cat /etc/*-release
Fedora release 25 (Twenty Five) NAME=Fedora VERSION="25 (Workstation Edition)" ID=fedora VERSION_ID=25 PRETTY_NAME="Fedora 25 (Workstation Edition)" ANSI_COLOR="0;34" CPE_NAME="cpe:/o:fedoraproject:fedora:25" HOME_URL="https://fedoraproject.org/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Fedora" REDHAT_BUGZILLA_PRODUCT_VERSION=25 REDHAT_SUPPORT_PRODUCT="Fedora" REDHAT_SUPPORT_PRODUCT_VERSION=25 PRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy VARIANT="Workstation Edition" VARIANT_ID=workstation Fedora release 25 (Twenty Five) Fedora release 25 (Twenty Five)
Start using your new Fedora 25 system. Like I said already, these steps are same to upgrade both Fedora desktop and Server.