In this tutorial you will learn:
- How to fully upgrade your current system
- How to upgrade to Fedora 31
Software Requirements and Conventions Used
|Category||Requirements, Conventions or Software Version Used|
|Other||Privileged access to your Linux system as root or via the |
|Conventions|| # - requires given linux commands to be executed with root privileges either directly as a root user or by use of |
Upgrading Fedora 30 Workstation to Fedora 31 step by step instructions
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.
- The first step is to make sure your current system is up to date. Make your metadata expire with
dnf clean expire-cachecommand or simply run:
$ sudo dnf --refresh upgradeThe above command will fully upgrade your current Fedora 30 system.
- (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 enabledThe above command will list all your currently enable repositories. The following command will list all manually installed packages:
$ dnf history userinstalled
- Next, install system upgrade plugin necessary to perform the actual upgrade:
$ sudo dnf install dnf-plugin-system-upgrade
- Download all required upgrade packages related to Fedora 31:
$ sudo dnf system-upgrade download --releasever=31In case you are facing some dependencies issues use the
--allowerasingto allow the system erasing of installed packages to resolve dependencies:
$ sudo dnf system-upgrade download --releasever=31 --allowerasing
- 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 rebootAll done!