How to temporarily downgrade the PHP8 package in Leap 16.0

Hello all,

I have messed-up. I have upgraded from Leap 15.6 to Leap 16.0 to soon.
Now I am on Leap 16.0 and I found I can’t upgrade my Nextcloud installation.

This version of Nextcloud is not compatible with PHP>=8.4.<br/>You are currently running 8.4.24.

My Nextcloud version is 28.0.14.
Looking at the supported PHP8 versions, my current Nextcloud version should support PHP8.3

Following this thread: How to downgrade a package via zypper?

I tried:

zypper install --oldpackage php8 → ‘php8’ is already installed.
zypper install --oldpackage php8=8.3.33 → No provider of ‘php8=8.3.33’ found.
zypper install --oldpackage php83 → No provider of ‘php83’ found.

I have found a PHP8.3 package https://build.opensuse.org/project/show/devel:languages:php:php83

zypper install devel_languages_php_php83:php8 → No provider of ‘devel_languages_php_php83:php8’ found.

I’m lost, any help would be appreciated
I just need to downgrade PHP8 to 8.3 so I can upgrade my Nextcloud installation to a version that supports PHP8.4 and then return to the PHP8 version supported by Leap 16.0

Thanks.

Welcome to the Forums!
You should (temporarily) add that repo:

zypper addrepo -f https://download.opensuse.org/repositories/devel:languages:php:php83/16.0/devel:languages:php:php83.repo

then you can install the version you need, easier if done in Myrlyn checking the “Version” tab.
When done, upgrade php8 the same way and remove the devel:languages repo, check the Repositories menu via CTRL+SHIFT+O.

1 Like

Right! Thanks a lot. I works perfectly.

No idea what Myrlyn is but I’ll check it out. Hope it works on my headless server :slight_smile:

Myrlyn is the graphical package manager for Leap, so no chance for it on headless servers… but I didn’t figure out that you were a command line guru :wink:

1 Like