Upgrade Fedora 31 to Fedora 32 with the CLI

I need to improve the Fedora model 31 to Fedora 32 Linux server utilizing the command line possibility. How do I improve Fedora 31 to 32?

Fedora Linux is one other fashionable open-source Linux distribution focused at desktop/laptop computer and server customers who need leading edge software program in binary format. The most recent model of Fedora is 32. Fedora model 32 launched on April 28, 2020. This web page reveals you the way to improve the prevailing model of Fedora Linux 31 to 32 utilizing the dnf command.


Process to improve Fedora 31 to Fedora 32 Linux server

  1. Create a backup of your Fedora server or cloud field/VM.
  2. Improve all put in packages of Fedora model 31 by working sudo dnf improve –refresh command.
  3. Reboot the Fedora Linux system by tying the sudo reboot command if kernel replace was put in.
  4. Set up the Fedora replace utility, run: sudo dnf set up dnf-plugin-system-upgrade
  5. Begin the improve process and obtain packages, run: sudo dnf system-upgrade obtain –releasever=32
  6. Reboot the field and full improve, run: sudo dnf system-upgrade reboot
  7. Confirm upgrades

Step 1 – Backup your Fedora server

You need to preserve backups of all important information, recordsdata, and databases earlier than you kind any one of many following instructions. In some circumstances, an improve could fail, and you’ll all the time return to backups to revive your system or information. Subsequent, I’m going to log in to my Fedora server utilizing the ssh command:
ssh [email protected]
ssh [email protected]

Step 2 – Replace present Fedora software program and apps

It’s time to apply and improve patches to already put in apps. Run the next dnf command:
sudo dnf replace
## OR ##
dnf –refresh improve

Pattern outputs:

Final metadata expiration test: 0:10:48 in the past on Tuesday 28 April 2020 02:58:51 PM UTC.
Dependencies resolved.
Bundle Arch Model Repo Dimension
NetworkManager x86_64 1:1.20.10-1.fc31 updates 2.Zero M
NetworkManager-bluetooth x86_64 1:1.20.10-1.fc31 updates 50 ok
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 ok
libtool-ltdl x86_64 2.4.6-31.fc31 fedora 37 ok
python3-pydbus noarch 0.6.0-9.fc31 fedora 52 ok
Putting in weak dependencies:
elfutils-debuginfod-client x86_64 0.179-1.fc31 updates 34 ok
reportd x86_64 0.7.3-1.fc31 updates 56 okTransaction Abstract
Set up 14 Packages
Improve 332 Packages

Complete obtain dimension: 353 M
Is that this okay [y/N]: y

Reboot the Fedora Linux server

Subject any one of many following instructions:
sudo reboot
## OR ##
sudo shutdown -r now
## OR ##
sudo systemctl reboot
Pattern outputs:

Connection to 1.2.3.Four closed by distant host.
Connection to 1.2.3.Four closed.

Step 3 – Putting in the DNF plugin on Fedora

We have to set up a novel device written in Python3 known as python3-dnf-plugin-system-upgrade. It’s nothing however a system improve plugin for the DNF command, which permits offline system upgrades utilizing the “dnf system-upgrade” command. In different phrases, kind the next command to put in the identical:
sudo dnf set up dnf-plugin-system-upgrade
Upgrade Fedora 31 to Fedora 32 with the CLI

Step 4 – Upgrading Fedora 31 to Fedora 32 utilizing the CLI

Up to now, we backed up and verified our Fedora field, utilized all patches, upgraded apps, and put in the dnf plugin. It’s time to obtain Fedora 32 packages and begin the improve process by typing the next command:
sudo dnf system-upgrade obtain –releasever=32
You can be promoted as follows, and you’ll want to kind “Y” to proceed with the improve process:

Earlier than you proceed make sure that your system is totally upgraded
by working “dnf –refresh improve”. Do you need to proceed [y/N]: y

As quickly as you confirmed improve, the dnf will start downloading all the upgrades in your server/desktop onto a neighborhood exhausting disk and put together the replace system:
Upgrade Fedora 31 to Fedora 32 with the CLI

Reboot to finish the improve process

Lastly, you’re going to get affirmation about downloads as follows:

Obtain full! Use ‘dnf system-upgrade reboot’ to begin the improve.
To take away cached metadata and transaction use ‘dnf system-upgrade clear’
The downloaded packages have been saved in cache till the following profitable transaction.
You may take away cached packages by executing ‘dnf clear packages’.

In different phrases, we downloaded all up to date packages for Fedora model 32. It’s time to reboot the techniques. Therefore, kind the next command:
sudo dnf system-upgrade reboot
As soon as the system restarted, the dnf will start the improve course of. It should take a while to put in all these downloaded packages, so it’s a must to wait. Here’s a screenshot exhibiting improve progress:
Upgrade Fedora 31 to Fedora 32 with the CLI

Step 5 – Verification

Use the next cat command to confirm Fedora Linux model:
cat /and many others/fedora-release
Discover Fedora Linux kernel model too utilizing the uname command:
uname -mrs
Upgrade Fedora 31 to Fedora 32 with the CLI


Configurations! We simply improve to Fedora 32, and it was profitable. Now you’ll be able to check your apps and code. See Fedora Linux venture dwelling web page right here for all different particulars see this web page right here.


Posted by: Vivek Gite

The writer is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a coach for the Linux working system/Unix shell scripting. Get the newest tutorials on SysAdmin, Linux/Unix and open supply subjects by way of RSS/XML feed or weekly electronic mail e-newsletter.

fedora upgrade 30 to 31,fedora 31 to 32,upgrading fedora 31 to fedora 32,fedora 30 to 32,upgrade fedora 29 to 31,upgrade fedora 27 to 31,upgrade fedora 28 to 30,upgrade to fedora 31 beta