Commit 62716241 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm prescription php: add support for php8.0 and php8.1

parent 3071dc05
#!/bin/sh
[ "$1" != "--run" ] && echo "Install php8 (or upgrade from php7)" && exit
[ "$1" != "--run" ] && echo "Install php8.0 (or upgrade from php7)" && exit
distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTServer" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
......@@ -8,11 +8,11 @@ distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTSe
if epmqp --quiet php7- ; then
# Upgrade if was installed php7
epmqp php7 --short | grep -v "rpm-build-php" | sed -e "s|php7-http||" -e "s|php7-xmlrpc||" -e "s|php7-krb5||" -e "s|php7-raphf||" -e "s|php7-propro||" -e "s|php7-memcache$||" -e "s|php7-apcu_bc$||" -e "s|php7-enchant||" -e "s|php7-pdo_sqlsrv$||" -e "s|php7-sqlsrv$||" -e "s|php7-geoip||" -e "s|php7|php8.1|" | epmi --auto
epmqp php7 --short | grep -v "rpm-build-php" | sed -e "s|php7-http||" -e "s|php7-xmlrpc||" -e "s|php7-krb5||" -e "s|php7-raphf||" -e "s|php7-propro||" -e "s|php7-memcache$||" -e "s|php7-apcu_bc$||" -e "s|php7-enchant||" -e "s|php7-pdo_sqlsrv$||" -e "s|php7-sqlsrv$||" -e "s|php7-geoip||" -e "s|php7|php8.0.1|" | epmi --auto
epme php7-libs
else
# Install all packages
epmi php8 php8-mbstring php8-pdo php8-curl php8-fileinfo php8-dom php8-exif php8-pdo_mysql php8-mysqli php8-pcntl php8-openssl php8-mcrypt php8-gd2 php8-xmlreader php8-memcached php8-xsl php8-zip php8-redis php8-opcache
#echo "Think twice about php8-imagick. See https://bugzilla.altlinux.org/show_bug.cgi?id=39033"
epmi php8.0 php8.0-mbstring php8.0-pdo php8.0-curl php8.0-fileinfo php8.0-dom php8.0-exif php8.0-pdo_mysql php8.0-mysqli php8.0-pcntl php8.0-openssl php8.0-mcrypt php8.0-gd2 php8.0-xmlreader php8.0-memcached php8.0-xsl php8.0-zip php8.0-redis php8.0-opcache
#echo "Think twice about php8.0-imagick. See https://bugzilla.altlinux.org/show_bug.cgi?id=39033"
fi
#!/bin/sh
[ "$1" != "--run" ] && echo "Install php8.1 (or upgrade from php7)" && exit
distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTServer" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
# TODO: check for apache2-mod_php7
if epmqp --quiet php7- ; then
# Upgrade if was installed php7
epmqp php7 --short | grep -v "rpm-build-php" | sed -e "s|php7-http||" -e "s|php7-xmlrpc||" -e "s|php7-krb5||" -e "s|php7-raphf||" -e "s|php7-propro||" -e "s|php7-memcache$||" -e "s|php7-apcu_bc$||" -e "s|php7-enchant||" -e "s|php7-pdo_sqlsrv$||" -e "s|php7-sqlsrv$||" -e "s|php7-geoip||" -e "s|php7|php8.1.1|" | epmi --auto
epme php7-libs
else
# Install all packages
epmi php8.1 php8.1-mbstring php8.1-pdo php8.1-curl php8.1-fileinfo php8.1-dom php8.1-exif php8.1-pdo_mysql php8.1-mysqli php8.1-pcntl php8.1-openssl php8.1-mcrypt php8.1-gd2 php8.1-xmlreader php8.1-memcached php8.1-xsl php8.1-zip php8.1-redis php8.1-opcache
#echo "Think twice about php8.1-imagick. See https://bugzilla.altlinux.org/show_bug.cgi?id=39033"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment