Topic: Problems with REMI on CentOS8
Hi,
I have just loaded up CentOS8 to test it out. I have a lot of CentOS 7 VMs maintained by Ansible.
I use REMI repos to get the latest PHP versions.
On CentOS7 I used to do this:
Install remi repo
Enable remi-php73 repo
yum install php (and a whole load of other php modules)
And I'd get the 7.3 versions of those.
That fails on CentOS8 because yum (/dnf) finds php 7.2 from the new Appstream and nothing else.
The only way I can install php 7.3 from remi is to specify it explicitly with: yum install php73-php
My question is this: Is that how we have to do things in the brave new world of CentOS8 or is there something else I need to do to get yum/dnf to take notice of the remi-php73 repo?
I have included a comparison below of CentOS7 and CentOS8 using php-gd as an example:
CentOS7
[root@dcentos7 yum.repos.d]# yum repolist
repo id repo name status
base/7/x86_64 CentOS-7 - Base 10,097
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,415
extras/7/x86_64 CentOS-7 - Extras 304
remi Remi's RPM repository for Enterprise Linux 7 - x86_64 5,870
remi-php73 Remi's PHP 7.3 RPM repository for Enterprise Linux 7 - x86_64 327
updates/7/x86_64 CentOS-7 - Updates 319
[root@centos7 yum.repos.d]# yum list | grep php-gd
php-gd.x86_64 7.3.9-1.el7.remi @remi-php73
php-gd.x86_64 7.3.10-1.el7.remi remi-php73
php54-php-gd.x86_64 5.4.45-17.el7.remi remi
php55-php-gd.x86_64 5.5.38-11.el7.remi remi
php56-php-gd.x86_64 5.6.40-13.el7.remi remi
php70-php-gd.x86_64 7.0.33-13.el7.remi remi
php71-php-gd.x86_64 7.1.32-1.el7.remi remi
php72-php-gd.x86_64 7.2.23-1.el7.remi remi
php73-php-gd.x86_64 7.3.10-1.el7.remi remi
php74-php-gd.x86_64 7.4.0~rc2-22.el7.remi remi
CentOS8
[root@centos8 yum.repos.d]# yum repolist
repo id repo name status
AppStream CentOS-8 - AppStream 4,928
BaseOS CentOS-8 - Base 2,713
*epel Extra Packages for Enterprise Linux 8 - x86_64 1,614
extras CentOS-8 - Extras 3
remi Remi's RPM repository for Enterprise Linux 8 - x86_64 3,263
remi-php73 Remi's PHP 7.3 RPM repository for Enterprise Linux 8 - x86_64 248
[root@centos8 yum.repos.d]# yum list | grep php-gd
php-gd.x86_64 7.2.11-1.module_el8.0.0+56+d1ca79aa AppStream
php56-php-gd.x86_64 5.6.40-13.el8.remi remi
php70-php-gd.x86_64 7.0.33-13.el8.remi remi
php71-php-gd.x86_64 7.1.32-1.el8.remi remi
php72-php-gd.x86_64 7.2.23-1.el8.remi remi
php73-php-gd.x86_64 7.3.10-1.el8.remi remi
php74-php-gd.x86_64 7.4.0~rc2-22.el8.remi remi
As you can see, CentOS7 gets php-gd from Remi but CentOS8 gets it from Appstream and it's the wrong version.