Issue
Conflicts when installing ALT-PHP extensions. They might look like the following:
# yum install alt-php81*
...
Error: Package: alt-php81-xml-8.1.18-1.el7.x86_64 (cloudlinux-x86_64-server-7)
Requires: alt-php81-common = 8.1.18-1.el7
Installed: alt-php81-common-8.1.20-1.el7.x86_64 (@cloudlinux-rollout-5)
...
Environment
- ALT-PHP
- CloudLinux OS
- PHP Selector
Solution
1. Remove the conflicting packages.
2. Reinstall compatible versions of said packages.
3. Proceed to install the required extensions.
For example, in the error message, the conflicting components are the alt-php81 packages version 8.1.20 with 8.1.18, so we should look for those 8.1.20 packages:
# rpm -qa| grep 8.1.20 | grep alt
alt-php81-cli-8.1.20-1.el7.x86_64
alt-php81-pdo-8.1.20-1.el7.x86_64
alt-php81-8.1.20-1.el7.x86_64
We can then remove them:
# for package in `rpm -qa| grep 8.1.20 | grep alt`; do rpm -v -e --justdb --nodeps $package; done
Once the packages are gone, we install all the extensions without conflicts:
# yum install alt-php81*
Cause
This usually happens when a package can't satisfy its requirements because different versions of its dependencies are installed.
In this example, the package "alt-php81-xml" required "alt-php81-common" version 8.1.18 to be installed, but instead, "alt-php81-common" version 8.1.20 was found.
Comments
0 comments
Please sign in to leave a comment.