How best to upgrade from 15.1 to 15.2 when using QT5 and Frameworks 5 repos

I have a working 15.1 system with the KDE-QT5 and KDE-Frameworks 5 repos enabled.
I would like to change all repos from 15.1 to 15.2 versions and use “zypper dup” method to do the upgrade.

Initial attempts generates an enormous number of required manual intervention to choose between KDE and OBS versions of files.

Is there a better way?

Thanks in advance

How are you upgrading? The following?

zypper --releasever 15.2 dup

Hi Malcom

As I read through I came upon

The above will only work if your Leap repos defined in  /etc/zypp/repos.d/ are using the $releasever variable already. If they  are still hard-coded with a particular Leap version number, then you  need to modify them first. For example, assuming Leap 15.1, then this  can be done with sudo sed -i 's/15.1/${releasever}/g' /etc/zypp/repos.d/*.repo

I guess I missed the $releasever format trick a while ago, my repos defined in /etc/zypp/repos.d/ do not use $releasever so I manually edited ‘15.1’ to ‘15.2’, then in a level 3 terminal ran

zypper update
zypper refresh
zypper dup--download-in-advance

All the repos refreshed OK, but I then faced a long list of manual decisions to switch from OBS to KDE, which seems error prone so I would like to avoid.

Perhaps it would be better better that I first get with the updated format by running

sudo sed -i 's/15.1/${releasever}/g' /etc/zypp/repos.d/*.repo
zypper --releasever=15.2 ref
zypper --releasever=15.2 dup --download-in-advance

This is my current release definition

cat /etc/os-release
NAME="openSUSE Leap"
ID_LIKE="suse opensuse"
PRETTY_NAME="openSUSE Leap 15.1"

I assume that will update as part of the dup


Yes, that sounds like a plan to download in advance, I would do the update via tty or running screen at least… As for the non standard repos, hard to say, if they are newer packages then let it switch…

To my experience manual decisions are minimized by reverting to the default list of repos (disabling additional repos) and performing vendor change, upgrading and enabling the additional repos with vendor change.

Documentation says: zypper dup is guaranteed to work with the default repositories only

If you edit /etc/zypp/zypp.conf to allow vendor change your zypper dup should work.
Ive just done my wife’s.

This to summarize what I did after your useful comments.

I did follow this path, first to modernize my setup then complete the upgrade

sudo sed -i 's/15.1/${releasever}/g' /etc/zypp/repos.d/*.repo
zypper --releasever=15.2 ref
zypper --releasever=15.2 dup --download-in-advance

In performing my final update of the 15.1 system, I did realize that I had accumulated several repository inconsistencies, so made YAST “Switch All Packages” one final time for 15.1 to the QT5, Frameworks 5 and packman repos before the upgrade.

The “zypper dup” process spawned only a few manual vendor decisions and it completed successfully.

I had completed this before I saw Pet’s suggestion

If you edit /etc/zypp/zypp.conf to allow vendor change your zypper dup should work.
Ive just done my wife’s.

I did some investigation, the /etc/zypp/zypp.conf looks rather complex and Pete’s suggestion comes with this disclaimer

## EXPERTS ONLY: Per default the solver will not replace packages of
## different vendors, unless you explicitly ask to do so. Setting this
## option to TRUE will disable this vendor check (unless the application
## explicitly re-enables it). Packages will then be considered based on
## repository priority and version only. This may easily damage your system.
## Valid values:  boolean
## Default value: false
# solver.allowVendorChange = false

I may give it a try in the future, but not on my primary desktop.
I am nowhere near a “zypper EXPERT”

Thanks for all suggestions.

What about:

zypper dup --allow-vendor-change

Nothing to change in /ezc/zypp/zypp.conf…

Thanks for the hint !

I’d forgotten about that. Thanks for the reminder (not that I need it much).