Melhttps://unixcop.com
Unix/Linux Guru and FOSS supporter

How to upgrade openSUSE Leap from 15.1 or 15.2 to 15.3

In this tutorial, we will show you how to upgrade from lower openSUSE like 15.0 or 15.0 to 15.3.

In my case, I’m using openSUSE LEAP 15.1, before starting the upgrade, we strongly advise backing your actual Data in case you are using this release in production environments.

Step 1 : Refresh The repositories

So First thing I have to do is to refresh my actual repositories with this command

 sudo zypper ref

Step 2: Updates the Actual packages

you can updates with command zypper up

unixcop-opensuse:~ # sudo zypper  up

Step 3 : Reboot your machine and check your system info

sudo reboot
sudo  hostnamectl 

Enabling Update repository:
Run the following command to check if the update repository already exists and is enabled.

zypper repos --uri | grep -i update

If the ‘Enabled’ column says ‘No’, enable it by issuing the below command:

$ zypper modifyrepo –enable repo-update

Updating the repositories:

Check if your Leap repos defined in ‘/etc/zypp/repos.d/’ are using the ‘$releasever’ variable already using the following command.

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


In most cases, it should already have the ‘$releasever’ variable. They are still hard-coded with a particular Leap version number, then run the following command to modify them.

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


To refresh the openSUSE Leap 15.3 repositories, run:

$ sudo zypper --releasever=15.3 refresh

It’s time to upgrade

zypper --releasever=15.3 dup  --force-resolution 

The –force-resolution is important to avoid answering on this question

So This action will take some time to Download and upgrade all packages

When this action successfully completed that you have to reboot your server.

reboot

Check your system Now

hostnamectl

zypper ls -r

Done

3 COMMENTS

  1. Hi Mel,

    I used your info to upgrade to 153 (from 15.2). It all went well but after the upgrade it syas Leap 15.3 (hotnamectl) but it still shows 15.2
    repositories (with zypper ls -r). Should i be worried or is there a way to fix this?

    Thanks in advance,
    Michel

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

x