Starting Fedora 22, we can now do a in place system upgrade from the previous version and it is not too difficult a task as well.
Let’s upgrade from Fedora 22 to Fedora 23 in place. I use here a fresh install of Fedora 22 and upgrade it to Fedora 23. The tasks require root privileges and for convenience I become root user here in this system.
1. Update the system with all the latest packages
[root@f22wvanilla ~]# dnf update --refresh
“–refresh” sets the repo metadata as expired before running the update
2. Reboot system
It is always a good practice to reboot the system post an update especially if there was a kernel update (required) or updates to glibc etc.
[root@f22wvanilla ~]# reboot
3. Install system-upgrade plugin for DNF
This is the plugin for DNF that performs in place system upgrade.
[root@f22wvanilla ~]# dnf install dnf-plugin-system-upgrade
4. Download updated packages for Fedora 23
[root@f22wvanilla ~]# dnf system-upgrade download --releasever=23
5. Perform a System upgrade reboot
Now that we have all the updated packages downloaded for the upgrade, run the following command to perform a reboot and run the system upgrade.
[root@f22wvanilla ~]# dnf system-upgrade reboot
The system reboots and loads the older kernel and then starts of the upgrade and update all packages and reboots into Fedora 23 once done.
6. Post system upgrade tidy up
Run this command to check if there is any package with broken dependencies. There shouldn’t be anything but if any, you may need to fix manually
[root@f22wvanilla ~]# dnf repoquery --unsatisfied
Run this command to check for any duplicate packages. Hopefully, there should’t be anything other than kernel. If any other found, you may need to manually remove older packages.
[root@f22wvanilla ~]# dnf repoquery --duplicated
Thats it. You are now running the latest Fedora release (23).
[root@f22wvanilla ~]# cat /etc/os-release NAME=Fedora VERSION="23 (Workstation Edition)" ID=fedora VERSION_ID=23 PRETTY_NAME="Fedora 23 (Workstation Edition)" ANSI_COLOR="0;34" CPE_NAME="cpe:/o:fedoraproject:fedora:23" HOME_URL="https://fedoraproject.org/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Fedora" REDHAT_BUGZILLA_PRODUCT_VERSION=23 REDHAT_SUPPORT_PRODUCT="Fedora" REDHAT_SUPPORT_PRODUCT_VERSION=23 PRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy VARIANT="Workstation Edition" VARIANT_ID=workstation