I use Fedora as my Linux distro of choice in my home lab, so was keen to try the upgrade to Fedora 23, which was released recently. The release notes detail what has changed – which I’ll not go into here, but instead will go through the steps I took to upgrade my Fedora 20 system. Before starting, it’s worthwhile to check which version of Fedora you have. To do so you can run:
[root@localhost ~]# cat /etc/redhat-release Fedora release 21 (Twenty One)
Before upgrading, as well as making sure you have a backup of your system, you should bring the existing installed packages up to date, if it isn’t already using the ‘dnf upgrade’ command. As it turns out, my system was already up to date:
[root@localhost ~]# dnf upgrade Dependencies resolved. Nothing to do.
Next, we want to install a plugin for dnf, which will allow us to use it to upgrade the system to Fedora 23. To do so:
[root@localhost ~]# dnf install dnf-plugin-system-upgrade Using metadata from Thu Nov 19 14:46:55 2015 (0:49:08 hours old) Dependencies resolved. ========================================================================================================================= Package Arch Version Repository Size ========================================================================================================================= Installing: dnf-plugin-system-upgrade noarch 0.5.0-1.fc21 updates 47 k python2-dnf-plugin-system-upgrade noarch 0.5.0-1.fc21 updates 30 k Transaction Summary ========================================================================================================================= Install 2 Packages Total download size: 77 k Installed size: 171 k Is this ok [y/N]: y Downloading Packages: (1/2): dnf-plugin-system-upgrade-0.5.0-1.fc21.noarch.rpm 77 kB/s | 47 kB 00:00 (2/2): python2-dnf-plugin-system-upgrade-0.5.0-1.fc21.noarch.rpm 38 kB/s | 30 kB 00:00 ------------------------------------------------------------------------------------------------------------------------- Total 40 kB/s | 77 kB 00:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Installing : python2-dnf-plugin-system-upgrade-0.5.0-1.fc21.noarch 1/2 Installing : dnf-plugin-system-upgrade-0.5.0-1.fc21.noarch 2/2 Verifying : dnf-plugin-system-upgrade-0.5.0-1.fc21.noarch 1/2 Verifying : python2-dnf-plugin-system-upgrade-0.5.0-1.fc21.noarch 2/2 Installed: dnf-plugin-system-upgrade.noarch 0.5.0-1.fc21 python2-dnf-plugin-system-upgrade.noarch 0.5.0-1.fc21 Complete!
With the plugin installed, we can now use the following command, to begin upgrading the system:
dnf system-upgrade download --releasever=23
The Fedora 23 packages will now be downloaded. This may take a little time:
[root@localhost ~]# dnf system-upgrade download --releasever=23 Fedora 23 - x86_64 21% [========- ] 2.0 MB/s | 9.4 MB 00:16 ETA
Once the downloads are done, you should see this message:
Complete! Download complete! Use 'dnf system-upgrade reboot' to start the upgrade.
Running ‘dnf system-upgrade reboot’ will reboot the system and start the upgrade. The process will take a little while to complete, but once done you should be greeted with a Fedora 23 banner: