phpmyadmin will not install on CentOS 7. Dependency errors

Our Client Open ticket and asked support to fix any issue during installing phpmyadmin on centos . but because this problem occur in different situation , We describe How fix issue for others.

Error: Package: php-pecl-apcu-4.0.11-1.el7.x86_64 (@epel)
           Requires: php(api) = 20100412-64
           Removing: php-common-5.4.16-46.1.el7_7.x86_64 (@updates)
               php(api) = 20100412-64
           Updated By: php-common-7.2.32-1.el7.remi.x86_64 (remi-php72)
               php(api) = 20170718-64
           Available: php-common-5.4.16-48.el7.x86_64 (base)
               php(api) = 20100412-64
           Available: php-common-7.2.31-2.el7.remi.x86_64 (remi-php72)
               php(api) = 20170718-64
Error: Package: php-tidy-5.4.16-9.el7.x86_64 (@epel)
           Requires: php(api) = 20100412-64
           Removing: php-common-5.4.16-46.1.el7_7.x86_64 (@updates)
               php(api) = 20100412-64
           Updated By: php-common-7.2.32-1.el7.remi.x86_64 (remi-php72)
               php(api) = 20170718-64
           Available: php-common-5.4.16-48.el7.x86_64 (base)
               php(api) = 20100412-64
           Available: php-common-7.2.31-2.el7.remi.x86_64 (remi-php72)
               php(api) = 20170718-64
Error: Package: php-pecl-apcu-4.0.11-1.el7.x86_64 (@epel)
           Requires: php(zend-abi) = 20100525-64
           Removing: php-common-5.4.16-46.1.el7_7.x86_64 (@updates)
               php(zend-abi) = 20100525-64
           Updated By: php-common-7.2.32-1.el7.remi.x86_64 (remi-php72)
               php(zend-abi) = 20170718-64
           Available: php-common-5.4.16-48.el7.x86_64 (base)
               php(zend-abi) = 20100525-64
           Available: php-common-7.2.31-2.el7.remi.x86_64 (remi-php72)
               php(zend-abi) = 20170718-64
Error: Package: php-imap-5.4.16-9.el7.x86_64 (@epel)
           Requires: php(zend-abi) = 20100525-64
           Removing: php-common-5.4.16-46.1.el7_7.x86_64 (@updates)
               php(zend-abi) = 20100525-64
           Updated By: php-common-7.2.32-1.el7.remi.x86_64 (remi-php72)
               php(zend-abi) = 20170718-64
           Available: php-common-5.4.16-48.el7.x86_64 (base)
               php(zend-abi) = 20100525-64
           Available: php-common-7.2.31-2.el7.remi.x86_64 (remi-php72)
               php(zend-abi) = 20170718-64
Error: Package: php-imap-5.4.16-9.el7.x86_64 (@epel)
           Requires: php(api) = 20100412-64
           Removing: php-common-5.4.16-46.1.el7_7.x86_64 (@updates)
               php(api) = 20100412-64
           Updated By: php-common-7.2.32-1.el7.remi.x86_64 (remi-php72)
               php(api) = 20170718-64
           Available: php-common-5.4.16-48.el7.x86_64 (base)
               php(api) = 20100412-64
           Available: php-common-7.2.31-2.el7.remi.x86_64 (remi-php72)
               php(api) = 20170718-64
Error: Package: php-tidy-5.4.16-9.el7.x86_64 (@epel)
           Requires: php(zend-abi) = 20100525-64
           Removing: php-common-5.4.16-46.1.el7_7.x86_64 (@updates)
               php(zend-abi) = 20100525-64
           Updated By: php-common-7.2.32-1.el7.remi.x86_64 (remi-php72)
               php(zend-abi) = 20170718-64
           Available: php-common-5.4.16-48.el7.x86_64 (base)
               php(zend-abi) = 20100525-64
           Available: php-common-7.2.31-2.el7.remi.x86_64 (remi-php72)
               php(zend-abi) = 20170718-64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

with these code  rpm -Va --nofiles --nodigest and --skip-broken cant fix this issue .

But How can fix it ?

You may have to give the PHP 7.2 repository a higher priority so that all packackes are obtained from the php72 repo. So to fix it , you need to have the package yum-plugin-priorities installed.

yum install yum-plugins-protectbase

After that add the following line to the remi-php72.repo file :

priority=10
[remi-php72]
name=Remi's PHP 7.2 RPM repository for Enterprise Linux 7 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/7/php72/$basearch/
#mirrorlist=https://rpms.remirepo.net/enterprise/7/php72/httpsmirror
mirrorlist=http://cdn.remirepo.net/enterprise/7/php72/mirror
enabled=1
priority=10
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

Leave a Reply

Your email address will not be published. Required fields are marked *