How to upgrade from Fedora 30 to Fedora 31

Fedora 31 has been released and can now be installed on desktops and servers. The question is how to upgrade Fedora 30 to Fedora 31? To enjoy the latest features available in Fedora 31, an upgrade or fresh installation is required. Most people prefer to use Fedora 30 to Fedora 31 on a workstation while retaining files and installed applications.

Upgrading Fedora 30 to Fedora 31 Workstation is easy. First confirm the version of Fedora you are running.

$ cat /etc/os-release 
NAME=Fedora
VERSION="30 (Workstation Edition)"
ID=fedora
VERSION_ID=30
VERSION_CODENAME=""
PLATFORM_ID="platform:f30"
PRETTY_NAME="Fedora 30 (Workstation Edition)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:30"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f30/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=30
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=30
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation

The same details can be extracted from the Desktop Environment About page.

Upgrade Fedora 30 to Fedora 31

You can upgrade Fedora 30 to Fedora 31 from the command line or from the desktop graphical interface. I prefer command line upgrades because it’s easy to resolve any errors that may arise.

Step 1: Back up the system

Back up important files before upgrading – It is recommended that you back them up to an external drive or other system on your network.

You can view the backup series in Fedora Magazine.

Step 2: Update the system

Make sure we have the latest version of the package installed.

sudo dnf upgrade --refresh

Restart after update

sudo reboot

Step 3: Upgrade Fedora 30 to Fedora 31

Once the system has booted from the restart, install the DNF plugin.

sudo dnf install dnf-plugin-system-upgrade

Press ÿ Accept the installation.

Last metadata expiration check: 0:12:03 ago on Wed 30 Oct 2019 02:22:43 PM EAT.
Dependencies resolved.
===================================================================================================================================================
 Package                                              Architecture              Version                           Repository                  Size
===================================================================================================================================================
Installing:
 python3-dnf-plugin-system-upgrade                    noarch                    4.0.7-2.fc30                      updates                     29 k
Installing dependencies:
 python3-dnf-plugins-extras-common                    noarch                    4.0.7-2.fc30                      updates                     65 k

Transaction Summary
===================================================================================================================================================
Install  2 Packages

Total download size: 94 k
Installed size: 212 k
Is this ok [y/N]: y

Start upgrading Fedora 30 to Fedora 31 by running the following command in a terminal.

sudo dnf system-upgrade download --releasever=31

You receive a warning that you should complete the system upgrade before running the command.

Before you continue ensure that your system is fully upgraded by running "dnf --refresh upgrade". Do you want to continue [y/N]: y

This command will download all the upgrades for your computer locally while preparing for the actual upgrade. If your dependencies are broken or an exited package prevents the upgrade, use the command.

sudo dnf system-upgrade download --releasever=31 ‐‐allowerasing

Successful download will display the following message.

Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                           1/1 
Complete!
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'.

Step 4: Start the upgrade

After successfully executing the command, reboot and complete the upgrade of Fedora 30 to Fedora 31.

sudo dnf system-upgrade reboot

Wait for the upgrade to complete, then check your Fedora version.

$ cat /etc/os-release
NAME=Fedora
VERSION="31 (Workstation Edition)"
ID=fedora
VERSION_ID=31
VERSION_CODENAME=""
PLATFORM_ID="platform:f31"
PRETTY_NAME="Fedora 31 (Workstation Edition)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:31"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f31/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=31
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=31
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation

Or check from the about page.

How to upgrade from Fedora 30 to Fedora 31

Enjoy using Fedora 31 Workstation / Server and check out other guides in our blog.

How to install AnyDesk on Fedora

How to install PostgreSQL 12 on Fedora

Sidebar