Starting from Fedora release 21 (Twenty One), Fedora can be upgraded using DNF system upgrade, which is recommended upgrade method for Fedora 21 and later releases. DNF is a kind of successor for FedUp (FEDora UPgrader), which is now obsolete, not supported any more by Fedora Project and should not be used in any circumstances.
In this article we will upgrade Fedora release 21 (Twenty One) to Fedora release 22 (Twenty Two) in five simple steps, using DNF system upgrade method.
Steps:
1. Back up your files
Each upgrade is a pretty risky operation, so you should be prepared for any potential failure and have a copy of your files.
2. Update your system using DNF
[root@fedora ~]# dnf update --refresh
Reboot, when update is finished:
[root@fedora ~]# reboot
3. Install DNF system upgrade plugin package
[root@fedora ~]# dnf install dnf-plugin-system-upgrade
4. Download the updated packages
[root@fedora ~]# dnf system-upgrade download --releasever=22
Since we are updating to Fedora release 22 (Twenty Two), we set releasever to 22.
5. Launch DNF upgrade process
The below command will reboot your system immediately:
[root@fedora ~]# dnf system-upgrade reboot
Fedora will boot again using the same kernel and upgrade process will start during boot screen. After the upgrade, the system will restart once again using new kernel. The whole process takes approximately 45 minutes.
Verify, that the system was upgraded to the new release:
[root@fedora ~]# cat /etc/fedora-release
Fedora release 22 (Twenty Two)