Upgrade Fedora 31 to Fedora 32 using the CLI

ADVERTISEMENTS



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

I want to upgrade the Fedora version 31 to Fedora 32 Linux server using the command line option. How do I upgrade Fedora 31 to 32?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.

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:

ssh user@fedora-server-ip-here

ssh vivek@server1.cyberciti.biz

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



Sample outputs:

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 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:

sudo reboot

## OR ##

sudo shutdown -r now

## OR ##

sudo systemctl reboot

Sample outputs:

Connection to 1.2.3.4 closed by remote host. Connection to 1.2.3.4 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

Use the following cat command to verify Fedora Linux version:

cat /etc/fedora-release

hostnamectl

Find Fedora Linux kernel version too using the uname command:

uname -mrs



Conclusion

Configurations! We just upgrade to Fedora 32, and it was successful. Now you can test your apps and code. See Fedora Linux project home page here for all other details see this page here.