Upgrading Fedora 30 Workstation to Fedora 31

This article will provide you with all necessary steps to upgrade Fedora 30 to Fedora 31.

In this tutorial you will learn:

  • How to fully upgrade your current system
  • How to upgrade to Fedora 31

Fedora 30 Workstation to Fedora 31 Upgrade

Fedora 30 Workstation to Fedora 31 Upgrade

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Fedora 30
Software N/A
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

Upgrading Fedora 30 Workstation to Fedora 31 step by step instructions

  1. BACKUP YOUR DATA
    Backup your data. Before you do anything make sure that you have backed up all your data to some external storage/system. In case you are upgrading virtually, make sure to take snapshot of your current virtual machine state.
  2. The first step is to make sure your current system is up to date. Make your metadata expire with dnf clean expire-cache command or simply run:
    $ sudo dnf  --refresh upgrade
    

    The above command will fully upgrade your current Fedora 30 system.



  3. (Optional) In the next step you are recommended to clean your software to improve the likelihood of a clean upgrade to Fedora 31.

    This includes removal of all software you no longer use whether it was installed from a standard Fedora or 3rd-party repository. The rule of thumb is, the less software installed the higher the change of a successful upgrade. Few commands which might provide you with some hints are:

    $ dnf repolist enabled
    

    The above command will list all your currently enable repositories. The following command will list all manually installed packages:

    $ dnf history userinstalled
    
  4. Next, install system upgrade plugin necessary to perform the actual upgrade:
    $ sudo dnf install dnf-plugin-system-upgrade
    
  5. Download all required upgrade packages related to Fedora 31:
    $ sudo dnf system-upgrade download --releasever=31
    

    In case you are facing some dependencies issues use the --allowerasing to allow the system erasing of installed packages to resolve dependencies:

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


  6. Last step is to simply reboot your system which will on the next boot trigger the actual upgrade from Fedora 30 to Fedora 31. Depending on your system and number of packages installed the upgrade might take some to complete.
    $ sudo dnf system-upgrade reboot
    

    All done!