Hi, trying to keep it short:
I have three issues in step #4 below:
This is my update approach:
- get a list of all installed PHP7 packages
- remove them
- find best suited official repo for update to PHP8.1 and enable it
- install all the packages
- create a list of all installed PHP7 packages:
rpm -qa | grep php7 | awk -F- -vOFS=- ‘{print $1,$2}’ | sort | tr ‘\n’ ’ ’ | tee php7.pkgs
php7-7.4.33 php7-bz2 php7-cli php7-ctype php7-curl php7-dom php7-exif php7-fileinfo php7-fpm php7-gd php7-gettext php7-iconv php7-imagick php7-intl php7-json php7-mbstring php7-mysql php7-opcache php7-openssl php7-pdo php7-phar php7-redis php7-sodium php7-sqlite php7-tokenizer php7-xmlreader php7-xmlwriter php7-zip php7-zlib
- remove them
zypper rm --clean-deps php7 php7-bz2 php7-cli php7-ctype php7-curl php7-dom php7-exif php7-fileinfo php7-fpm php7-gd php7-gettext php7-iconv php7-imagick php7-intl php7-json php7-mbstring php7-mysql php7-opcache php7-openssl php7-pdo php7-phar php7-redis php7-sodium php7-sqlite php7-tokenizer php7-xmlreader php7-xmlwriter php7-zip php7-zlib
- find best suited official repo for update to PHP8.1 and enable it
opi php8
8.1.17 is the latest 8.1 release, available in repo devel:languages:php
opi output:
"You have selected binary package: devel:languages:php ? | 8.1.17 | x86_64
Adding repo ‘devel:languages:php’
Import package singing key ‘devel\x3alanguages\x3aphp OBS Project <devel\x3alanguages\x3aphp@build.opensuse.org’ (Y/n)"
y
- install all the packages
zypper in php8 php8-bz2 php8-cli php8-ctype php8-curl php8-dom php8-exif php8-fileinfo php8-fpm php8-gd php8-gettext php8-iconv php8-imagick php8-intl php8-json php8-mbstring php8-mysql php8-opcache php8-openssl php8-pdo php8-phar php8-redis php8-sodium php8-sqlite php8-tokenizer php8-xmlreader php8-xmlwriter php8-zip php8-zlib
Output:
“Loading repository data…
Reading installed packages…
Package ‘php8-json’ not found.
Resolving package dependencies…
2 Problems:
Problem: the to be installed php8-imagick-3.7.0-lp154.16.1.x86_64 requires ‘php(api) = 20200930’, but this requirement cannot be provided
Problem: the to be installed php8-redis-5.3.7-bp154.2.1.x86_64 requires ‘php(api) = 20200930’, but this requirement cannot be provided”
So, there seem to be three issues:
- Where is php8-json?
- Where can I get a properly adapted php8-imagick package, using proper api version?
- Where can I get a properly adapted php8-redis package, using proper api version?
Eventually someone else has already gone through this and could provide some help here which would be highly appreciated.
Regards