Upgrade Fedora Server
Upgrading Fedora 24 Server to Fedora 25
The process of upgrading your Fedora Server to the latest Fedora 25 edition can be done in a few simple steps. As always, when upgrading a server, make sure you have taken a backup of your data. If you are using a virtualised platform, you may wish to make a clone or take a snapshot of your system first.
The process of upgrading your Fedora 24 system to Fedora 25 can be broken down into the following steps:
Backup your Original Server and Data (clone/snapshot) backup any Apps/DBs
Upgrade Fedora 24 to latest version - check current kernel version and list any updates that are available:
List Available Updates with the command: dnf list updates
Check Current Kernel Version with the command: uname -r
Apply any System Updates with the command: dnf update
Reboot System with command: systemctl reboot
Check Kernel Version with command uname -r
Install the required Upgrade Plugin:
Issue the command: dnf install dnf-plugin-system-upgrade
Initiate the Upgrade sequence:
Issue the command: dnf system-upgrade download --releasever=25
Initiate the Upgrade sequence:
Issue the command: dnf system-upgrade reboot
The following example upgrade was carried out from the console and not over a ssh connection using Oracle VirtualBox. Please Note, all commands were issued as the root user. If you are not the root user, you may need to prefix the commands with the prefix sudo.
Checking the Current Operating System and kernel Version
Use the commands "dnf list updates" and "uname -r" to check for updates and to display your current kernel version.
[root@fedora24srv ~]# dnf list updates Last metadata expiration check: 37 days, 18:39:33 ago on Wed Oct 26 18:47:22 2016.
uname -r - Displays current kernel version
[root@fedora24srv ~]# uname -r 4.7.9-200.fc24.x86_64
Install available Updates
Use the command dnf update to download and install any available updates. Before upgrading to Fedora 25, you must have a fully updated Fedora 24 system!
[root@fedora24srv ~]# dnf update
After a full update, its always recommended to perform a system reboot. To reboot your system, issue the command: systemctl reboot. This will bring in any updates and kernel updates that have been downloaded and applied.
[root@fedora24srv ~]# systemctl reboot
Your system will now reboot and you will be taken to your login prompt.
Check upgraded kernel Version
After any upgrade, its always a good idea to check to see which version of the Linux kernel you are now running with. In the example below, we can see that a kernel update has been applied.
[root@fedora24srv ~]# uname -r 4.8.10-200.fc24.x86_64
The next step of the upgrade process is to install the dnf-plugin-system-upgrade plugin
[root@fedora24srv ~]# dnf install dnf-plugin-system-upgrade
Download Upgrade Packages
After installing the required "dnf-plugin-system-upgrade" plugin. You are now ready to download the required upgrade packages for Fedora 25.
This is achieved by issuing the command: dnf system-upgrade download --releasever=25
Initiate the Upgrade Sequence
Once your upgrade packages have downloaded successfully, you will see a message: download complete! use 'dnf system-upgrade reboot'
Now issue the command: dnf system-upgrade reboot
[root@fedora24srv ~]# dnf system-upgrade reboot
Your system will now go through the process of installing the upgrade packages:
Congratulations, your server has now been upgraded to the latest release of Fedora.
Checking Operating System and kernel Version
Once you have logged in, you can confirm your Fedora version and kernel version by issuing the commands below:
[root@fedora24srv ~]# uname -r 4.8.10-300.fc25.x86_64 [root@fedora24srv ~]# cat /etc/fedora-release Fedora release 25 (Twenty Five)
You should now see the server has been upgraded to "Fedora release 25 (Twenty Five)" and is running with the latest available kernel version.