Fedora Linux is another popular open-source Linux distribution targeted at desktop/laptop and server users who want cutting edge software in binary format. The latest version of Fedora is 32. Fedora version 32 released on April 28, 2020. This page shows you how to upgrade the existing version of Fedora Linux 31 to 32 using the dnf command.
Procedure to upgrade Fedora 31 to Fedora 32 Linux server
- Create a backup of your Fedora server or cloud box/VM.
- Upgrade all installed packages of Fedora version 31 by running sudo dnf upgrade --refresh command.
- Reboot the Fedora Linux system by tying the sudo reboot command if kernel update was installed.
- Install the Fedora update utility, run: sudo dnf install dnf-plugin-system-upgrade
- Start the upgrade procedure and download packages, run: sudo dnf system-upgrade download --releasever=32
- Reboot the box and complete upgrade, run: sudo dnf system-upgrade reboot
- Verify upgrades
Step 1 – Backup your Fedora server
You must keep backups of all critical data, files, and databases before you type any one of the following commands. In some cases, an upgrade may fail, and you can always go back to backups to restore your system or data. Next, I am going to log in to my Fedora server using the ssh command:
Step 2 – Update existing Fedora software and apps
It is time to apply and upgrade patches to already installed apps. Run the following dnf command:
sudo dnf update
## OR ##
dnf --refresh upgrade
Last metadata expiration check: 0:10:48 ago on Tuesday 28 April 2020 02:58:51 PM UTC. Dependencies resolved. =============================================================================== Package Arch Version Repo Size =============================================================================== Upgrading: NetworkManager x86_64 1:1.20.10-1.fc31 updates 2.0 M NetworkManager-bluetooth x86_64 1:1.20.10-1.fc31 updates 50 k NetworkManager-libnm x86_64 1:1.20.10-1.fc31 updates 1.6 M .... ... .... libatomic_ops x86_64 7.6.10-2.fc31 fedora 36 k libtool-ltdl x86_64 2.4.6-31.fc31 fedora 37 k python3-pydbus noarch 0.6.0-9.fc31 fedora 52 k Installing weak dependencies: elfutils-debuginfod-client x86_64 0.179-1.fc31 updates 34 k reportd x86_64 0.7.3-1.fc31 updates 56 k Transaction Summary =============================================================================== Install 14 Packages Upgrade 332 Packages Total download size: 353 M Is this ok [y/N]: y
Issue any one of the following commands:
## OR ##
sudo shutdown -r now
## OR ##
sudo systemctl reboot
Connection to 126.96.36.199 closed by remote host. Connection to 188.8.131.52 closed.
Step 3 – Installing the DNF plugin on Fedora
We need to install a unique tool written in Python3 called python3-dnf-plugin-system-upgrade. It is nothing but a system upgrade plugin for the DNF command, which enables offline system upgrades using the “dnf system-upgrade” command. In other words, type the following command to install the same:
sudo dnf install dnf-plugin-system-upgrade
Step 4 – Upgrading Fedora 31 to Fedora 32 using the CLI
So far, we backed up and verified our Fedora box, applied all patches, upgraded apps, and installed the dnf plugin. It is time to download Fedora 32 packages and start the upgrade procedure by typing the following command:
sudo dnf system-upgrade download --releasever=32
You will be promoted as follows, and you need to type “Y” to continue with the upgrade procedure:
Before you continue ensure that your system is fully upgraded by running "dnf --refresh upgrade". Do you want to continue [y/N]: y
As soon as you confirmed upgrade, the dnf will begin downloading all of the upgrades for your server/desktop onto a local hard disk and prepare the update system:
Reboot to complete the upgrade procedure
Finally, you will get confirmation about downloads as follows:
Download complete! Use 'dnf system-upgrade reboot' to start the upgrade. To remove cached metadata and transaction use 'dnf system-upgrade clean' The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'dnf clean packages'.
In other words, we downloaded all updated packages for Fedora version 32. It is time to reboot the systems. Hence, type the following command:
sudo dnf system-upgrade reboot
Once the system restarted, the dnf will begin the upgrade process. It will take some time to install all those downloaded packages, so you have to wait. Here is a screenshot showing upgrade progress:
Step 5 – Verification
|Category||List of Unix and Linux commands|
|Firewall||CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04|
|Network Utilities||dig • host • ip • nmap|
|OpenVPN||CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04|
|Package Manager||apk • apt|
|Processes Management||bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time|
|Searching||grep • whereis • which|
|User Information||groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w|
|WireGuard VPN||CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04|