OpenSUSE: Upgrade from Leap 15.2 to 15.3 - TUXEDO Computers

  ATTENTION: To use our store you have to activate JavaScript and deactivate script blockers!  
Thank you for your understanding!

OpenSUSE: Upgrade from Leap 15.2 to 15.3

Already in June 2021, openSUSE Leap 15.3 was released. This guide will tell you how to upgrade your installation from Leap 15.2 to the new version.

Preparations

Before you start with the actual update, please back up all data in your installation that you still need, if you haven't already done so. Likely, the update will go through without a hitch, but this way you're on the safe side just in case. Furthermore, make sure that the notebook is connected to the mains. If it isn't and the battery drains during the update, this can result in an unbootable system.

Next, make sure that all Leap 15.2 packages are up-to-date. To achieve this, first update the source list with the repositories:

sudo zypper ref
This is followed by updating the installed packages,

sudo zypper up
followed by a reboot of the device:

sudo reboot
Then you prepare the actual update to the new version, Leap 15.3. First, check if the update repository exists and if it is already activated. This can be done with the command:

zypper repos --uri | grep -i update

The result should look like in the screenshot:

If it does not, fix it with the following command:

sudo zypper modifyrepo --enable repo-update

With the next command, determine if the repositories defined in /etc/zypp/repos.d already use the necessary  $releasever variable:

cat /etc/zypp/repos.d* .repo

The output lines starting with baseurl should have $releasever in the trailing part and not a version number like 15.2. If this is not the case, change it with the following command:

sudo sed -i 's/15.2/${releasever}/g' /etc/zypp/repos.d/*.repo

This is followed by updating the Leap 15.3 repositories

sudo zypper --releasever=15.3 refresh
At the end of the output it says 'All repositories have been updated' if successful. Then it is time to trigger the actual update:

sudo zypper --releasever=15.3 dup --download-in-advance

During the upgrade process, you will be prompted twice to confirm the operation. After the upgrade is completes, you must reboot. Thereafter, check the success of the upgrade with:

cat /etc/*-release

The output should look like this:

Please note: Do not try to upgrade from 15.1 to 15.3. In that case, upgrade from 15.1 to 15.2, and only then upgrade from 15.2 to 15.3.