I
I
Igor Ivanov2020-06-25 16:32:10
CentOS
Igor Ivanov, 2020-06-25 16:32:10

How to resolve conflict between php packages on CentOS 7?

Good afternoon! Please be understanding. I don't have much experience with Linux in general and CentOS in particular.

In the course of work, it became necessary to install the "php-xcache" package, but ran into a conflict problem. As far as I know, CentOS 7 defaults to PHP 5.4. There are 3 dependency issues. Output from "yum" below:

Resolving Dependencies
--> Running transaction check
---> Package php-xcache.x86_64 0:3.1.1-1.el7 will be installed
--> Processing Dependency: php(zend-abi) = 20100525-64 for package: php-xcache-3.1.1-1.el7.x86_64
--> Processing Dependency: php(api) = 20100412-64 for package: php-xcache-3.1.1-1.el7.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.4.16-48.el7 will be installed
--> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-48.el7.x86_64
--> Running transaction check
---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
--> Processing Conflict: php71w-common-7.1.33-1.w7.x86_64 conflicts php-common < 7.1

Packages skipped because of dependency problems:
    libzip-0.10.1-8.el7.x86_64 from base
    php-common-5.4.16-48.el7.x86_64 from base
    php-xcache-3.1.1-1.el7.x86_64 from epel


I will be grateful for the answer and any clarifications.

PS: there were, as I remember from the issuance of Yandex, two similar questions, but their study did not give a result, because. I don't have the opportunity to dive into this topic for a long time. Need a quick solution. Someone may say that this is elementary, but for me it is not so yet.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-06-25
@PlugIN

you have added a repository from Webtatic (this can be seen from the names of conflicting packages).
So install your package from there, write the request correctly
yum install php71w-xcache
And if you do not need it, and you need the "original" php-xcache , then disable this "left" repo, but be prepared that the packages installed from it will be removed .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question