Upgrading from Fedora 21/22 to Fedora 23

This tutorial is adopted from Fedora Magazine which describes the steps to be followed for upgrading Fedora 22 to Fedora 23.

I was using Fedora 21 since it's release. I experimented with Fedora 22 for one week and I was not happy with it's UI responsiveness and touch pad functionality. So I reverted back to Fedora 21. Then I wanted to upgrade to Fedora 23 when it was released. So I followed tutorial published in Fedora Magazine which was for upgrading from Fedora 22. Though it is written for Fedora 22, I found it working for Fedora 21 as well.


1. Backup Your System and Update dnf utility

Before doing anything, it is recommended to take a backup of system, which can be used for restoring if anything goes wrong. Then after that update `dnf` utility and ensure that you've latest packages for existing version.
sudo dnf upgrade

2. Install dnf upgrade plugin

Next step is to install dnf upgrade plugin, a plugin used for using system upgrade. This can be done using following command.
sudo dnf install dnf-plugin-system-upgrade

3. Download Update Packages using dnf

When dnf plugin installation is complete, download update packages required for system upgrade using following command.
sudo dnf system-upgrade download --releasever=23 --best
This step will take some time as it involves downloading all packages required for system upgrade.

4. Reboot System and Upgrade

Now, reboot your system to start upgrade activity. This can be done using following command.
sudo dnf system-upgrade reboot
When system is rebooted, it will start upgrade process automatically. This might take some time.After upgrade, you'll be booted to upgraded system.

5. Cleanup System

Once you're done with upgrade process, you'll have to cleanup your system to remove unused packages and unnecessary older packages. This can be done by executing following commands.
sudo rpm --rebuilddb
sudo dnf distro-sync --setopt=deltarpm=0

sudo dnf install rpmconf
sudo rpmconf -a

# Only if you've google chrome
sudo dnf remove google-chrome-\* && sudo dnf install google-chrome-[beta,stable,unstable]

That's All. Now we're done with upgrade process. Enjoy!!.

Share this

Related Posts

2 comments

comments
Anonymous
8 April 2016 at 04:38 delete

Will try this out! Thanks a bunch.

Reply
avatar
23 April 2016 at 11:11 delete

It works! Thank you so much. I had a little problem, though. In the last few % of the download progress, I got "Curl error: Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-23-X86_64" error. After searching, I tried "yum --enablerepo=updates-testing update fedora-repos" then rerun the update command and every thing worked perfectly fine.

Reply
avatar