Why remi-php Updates Fail with yum on CentOS 7

Repository priority with enablerepo on a yum update

* This page contains promotional content

Once again, an error caused by dependencies during a CentOS yum update

The situation

On CentOS7, php7.x has already been installed from the remi repository

The symptom

An error during yum update

# sudo yum update —enablerepo=remi-php73
エラー: パッケージ: php-pecl-zip-1.18.2-1.el7.remi.5.4.x86_64 (remi)
要求: php(zend-abi) = 20100525-64
インストール: php-common-7.3.0-1.el7.remi.x86_64 (@remi-php73)
php(zend-abi) = 20180731-64
利用可能: php-common-5.4.16-48.el7.x86_64 (base)
php(zend-abi) = 20100525-64
利用可能: php-common-5.4.45-18.el7.remi.x86_64 (remi)
php(zend-abi) = 20100525-64
エラー: パッケージ: php-pecl-zip-1.18.2-1.el7.remi.5.4.x86_64 (remi)
要求: php(api) = 20100412-64
インストール: php-common-7.3.0-1.el7.remi.x86_64 (@remi-php73)
php(api) = 20180731-64
利用可能: php-common-5.4.16-48.el7.x86_64 (base)
php(api) = 20100412-64
利用可能: php-common-5.4.45-18.el7.remi.x86_64 (remi)
php(api) = 20100412-64
問題を回避するために --skip-broken を用いることができます。

Using --skip-broken does not work either

The solution

sudo  yum update --enablerepo=remi,remi-php73,epel

The essential thing seems to be that when there are repositories needed by other modules and so on, you append them after --enablerepo (epel this time)

Reference article

See also