Topic: remi-php56: php-pecl-redis-2.2.7 + php-5.6.16

I have a virtual machine which is used for development purposes and distributed to my team.  It is currently provisioned to use php-5.6.16 (exact revision as production) and php-pecl-redis-2.2.7.  I am re-rolling the box to make some necessary adjustments, and I've run into a problem.  I am no longer able to install php-pecl-redis-2.2.7 in conjunction with php-5.6.16 because it now reports a dependency on php-5.6.17.

I need redis, but I do not want to update my version of PHP so that I can stay aligned with production.  I am using the "remi-php56" repo as the source for my PHP libraries.

# sudo yum deplist php-pecl-redis-2.2.7 --disablerepo=* --enablerepo=remi-php56

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * remi-php56: remi.xpg.com.br
package: php-pecl-redis.x86_64 2.2.7-1.el7.remi.5.6
  dependency: /bin/sh
   Unsatisfied dependency
  dependency: libc.so.6(GLIBC_2.14)(64bit)
   Unsatisfied dependency
  dependency: php(api) = 20131106-64
   provider: php-common.x86_64 5.6.17-1.el7.remi
  dependency: php(zend-abi) = 20131226-64
   provider: php-common.x86_64 5.6.17-1.el7.remi
  dependency: php-pecl-igbinary(x86-64)
   provider: php-pecl-igbinary.x86_64 1.2.1-1.el7.remi.5.6
  dependency: rtld(GNU_HASH)
   Unsatisfied dependency
# sudo yum --enablerepo=remi-php56 install php-pecl-redis

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.firehosted.com
 * epel: mirror.cogentco.com
 * extras: mirror.raystedman.net
 * remi-php56: remi.xpg.com.br
 * remi-safe: remi.xpg.com.br
 * updates: centos.vwtonline.net
Resolving Dependencies
--> Running transaction check
---> Package php-pecl-redis.x86_64 0:2.2.7-1.el7.remi.5.6 will be installed
--> Processing Dependency: php-pecl-igbinary(x86-64) for package: php-pecl-redis-2.2.7-1.el7.remi.5.6.x86_64
--> Running transaction check
---> Package php-pecl-igbinary.x86_64 0:1.2.1-1.el7.remi.5.6 will be installed
--> Processing Dependency: /usr/bin/pecl for package: php-pecl-igbinary-1.2.1-1.el7.remi.5.6.x86_64
--> Processing Dependency: /usr/bin/pecl for package: php-pecl-igbinary-1.2.1-1.el7.remi.5.6.x86_64
--> Running transaction check
---> Package php-pear.noarch 1:1.9.4-21.el7 will be installed
--> Processing Dependency: php-posix for package: 1:php-pear-1.9.4-21.el7.noarch
--> Running transaction check
---> Package php-process.x86_64 0:5.6.17-1.el7.remi will be installed
--> Processing Dependency: php-common(x86-64) = 5.6.17-1.el7.remi for package: php-process-5.6.17-1.el7.remi.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.6.16-1.el7.remi will be updated
--> Processing Dependency: php-common(x86-64) = 5.6.16-1.el7.remi for package: php-mcrypt-5.6.16-1.el7.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.16-1.el7.remi for package: php-pdo-5.6.16-1.el7.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.16-1.el7.remi for package: php-bcmath-5.6.16-1.el7.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.16-1.el7.remi for package: php-xml-5.6.16-1.el7.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.16-1.el7.remi for package: php-mbstring-5.6.16-1.el7.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.16-1.el7.remi for package: php-opcache-5.6.16-1.el7.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.16-1.el7.remi for package: php-gd-5.6.16-1.el7.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.16-1.el7.remi for package: php-cli-5.6.16-1.el7.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.16-1.el7.remi for package: php-fpm-5.6.16-1.el7.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.16-1.el7.remi for package: php-5.6.16-1.el7.remi.x86_64
---> Package php-common.x86_64 0:5.6.17-1.el7.remi will be an update
--> Running transaction check
---> Package php.x86_64 0:5.6.16-1.el7.remi will be updated
---> Package php.x86_64 0:5.6.17-1.el7.remi will be an update
---> Package php-bcmath.x86_64 0:5.6.16-1.el7.remi will be updated
---> Package php-bcmath.x86_64 0:5.6.17-1.el7.remi will be an update
---> Package php-cli.x86_64 0:5.6.16-1.el7.remi will be updated
---> Package php-cli.x86_64 0:5.6.17-1.el7.remi will be an update
---> Package php-fpm.x86_64 0:5.6.16-1.el7.remi will be updated
---> Package php-fpm.x86_64 0:5.6.17-1.el7.remi will be an update
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: php-fpm-5.6.17-1.el7.remi.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: php-fpm-5.6.17-1.el7.remi.x86_64
---> Package php-gd.x86_64 0:5.6.16-1.el7.remi will be updated
---> Package php-gd.x86_64 0:5.6.17-1.el7.remi will be an update
---> Package php-mbstring.x86_64 0:5.6.16-1.el7.remi will be updated
---> Package php-mbstring.x86_64 0:5.6.17-1.el7.remi will be an update
---> Package php-mcrypt.x86_64 0:5.6.16-1.el7.remi will be updated
---> Package php-mcrypt.x86_64 0:5.6.17-1.el7.remi will be an update
---> Package php-opcache.x86_64 0:5.6.16-1.el7.remi will be updated
---> Package php-opcache.x86_64 0:5.6.17-1.el7.remi will be an update
---> Package php-pdo.x86_64 0:5.6.16-1.el7.remi will be updated
--> Processing Dependency: php-pdo(x86-64) = 5.6.16-1.el7.remi for package: php-mysqlnd-5.6.16-1.el7.remi.x86_64
---> Package php-pdo.x86_64 0:5.6.17-1.el7.remi will be an update
---> Package php-xml.x86_64 0:5.6.16-1.el7.remi will be updated
---> Package php-xml.x86_64 0:5.6.17-1.el7.remi will be an update
--> Running transaction check
---> Package php-mysqlnd.x86_64 0:5.6.16-1.el7.remi will be updated
---> Package php-mysqlnd.x86_64 0:5.6.17-1.el7.remi will be an update
---> Package systemd-libs.x86_64 0:208-20.el7_1.6 will be updated
--> Processing Dependency: systemd-libs = 208-20.el7_1.6 for package: systemd-208-20.el7_1.6.x86_64
---> Package systemd-libs.x86_64 0:219-19.el7 will be an update
--> Running transaction check
---> Package systemd.x86_64 0:208-20.el7_1.6 will be updated
--> Processing Dependency: systemd = 208-20.el7_1.6 for package: systemd-sysv-208-20.el7_1.6.x86_64
--> Processing Dependency: systemd = 208-20.el7_1.6 for package: libgudev1-208-20.el7_1.6.x86_64
---> Package systemd.x86_64 0:219-19.el7 will be an update
--> Processing Dependency: kmod >= 18-4 for package: systemd-219-19.el7.x86_64
--> Running transaction check
---> Package kmod.x86_64 0:14-10.el7 will be updated
---> Package kmod.x86_64 0:20-5.el7 will be an update
---> Package libgudev1.x86_64 0:208-20.el7_1.6 will be updated
---> Package libgudev1.x86_64 0:219-19.el7 will be an update
---> Package systemd-sysv.x86_64 0:208-20.el7_1.6 will be updated
---> Package systemd-sysv.x86_64 0:219-19.el7 will be an update
--> Processing Conflict: systemd-219-19.el7.x86_64 conflicts initscripts < 9.49.28-1
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package initscripts.x86_64 0:9.49.24-1.el7 will be updated
---> Package initscripts.x86_64 0:9.49.30-1.el7 will be an update
--> Processing Conflict: systemd-219-19.el7.x86_64 conflicts dracut < 033-243
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package dracut.x86_64 0:033-241.el7_1.5 will be updated
--> Processing Dependency: dracut = 033-241.el7_1.5 for package: dracut-network-033-241.el7_1.5.x86_64
--> Processing Dependency: dracut = 033-241.el7_1.5 for package: dracut-config-rescue-033-241.el7_1.5.x86_64
---> Package dracut.x86_64 0:033-360.el7_2 will be an update
--> Running transaction check
---> Package dracut-config-rescue.x86_64 0:033-241.el7_1.5 will be updated
---> Package dracut-config-rescue.x86_64 0:033-360.el7_2 will be an update
---> Package dracut-network.x86_64 0:033-241.el7_1.5 will be updated
---> Package dracut-network.x86_64 0:033-360.el7_2 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================================
 Package                                                      Arch                                           Version                                                      Repository                                          Size
===================================================================================================================================================================================================================================
Installing:
 php-pecl-redis                                               x86_64                                         2.2.7-1.el7.remi.5.6                                         remi-php56                                         182 k
Updating:
 dracut                                                       x86_64                                         033-360.el7_2                                                updates                                            311 k
 initscripts                                                  x86_64                                         9.49.30-1.el7                                                base                                               429 k
Installing for dependencies:
 php-pear                                                     noarch                                         1:1.9.4-21.el7                                               base                                               357 k
 php-pecl-igbinary                                            x86_64                                         1.2.1-1.el7.remi.5.6                                         remi-php56                                          48 k
 php-process                                                  x86_64                                         5.6.17-1.el7.remi                                            remi-php56                                          72 k
Updating for dependencies:
 dracut-config-rescue                                         x86_64                                         033-360.el7_2                                                updates                                             49 k
 dracut-network                                               x86_64                                         033-360.el7_2                                                updates                                             90 k
 kmod                                                         x86_64                                         20-5.el7                                                     base                                               114 k
 libgudev1                                                    x86_64                                         219-19.el7                                                   base                                                64 k
 php                                                          x86_64                                         5.6.17-1.el7.remi                                            remi-php56                                         2.6 M
 php-bcmath                                                   x86_64                                         5.6.17-1.el7.remi                                            remi-php56                                          59 k
 php-cli                                                      x86_64                                         5.6.17-1.el7.remi                                            remi-php56                                         4.0 M
 php-common                                                   x86_64                                         5.6.17-1.el7.remi                                            remi-php56                                         1.1 M
 php-fpm                                                      x86_64                                         5.6.17-1.el7.remi                                            remi-php56                                         1.4 M
 php-gd                                                       x86_64                                         5.6.17-1.el7.remi                                            remi-php56                                          82 k
 php-mbstring                                                 x86_64                                         5.6.17-1.el7.remi                                            remi-php56                                         563 k
 php-mcrypt                                                   x86_64                                         5.6.17-1.el7.remi                                            remi-php56                                          50 k
 php-mysqlnd                                                  x86_64                                         5.6.17-1.el7.remi                                            remi-php56                                         293 k
 php-opcache                                                  x86_64                                         5.6.17-1.el7.remi                                            remi-php56                                         129 k
 php-pdo                                                      x86_64                                         5.6.17-1.el7.remi                                            remi-php56                                         134 k
 php-xml                                                      x86_64                                         5.6.17-1.el7.remi                                            remi-php56                                         243 k
 systemd                                                      x86_64                                         219-19.el7                                                   base                                               5.1 M
 systemd-libs                                                 x86_64                                         219-19.el7                                                   base                                               356 k
 systemd-sysv                                                 x86_64                                         219-19.el7                                                   base                                                52 k

Transaction Summary
===================================================================================================================================================================================================================================
Install  1 Package  (+ 3 Dependent packages)
Upgrade  2 Packages (+19 Dependent packages)

Re: remi-php56: php-pecl-redis-2.2.7 + php-5.6.16

This is the normal behavior.

Try to install "php-process" 5.6.16 (still online, I always keep 2 versions in the repo)

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: remi-php56: php-pecl-redis-2.2.7 + php-5.6.16

Thank you for the reply, Remi.

The more research I did last night the more I got the impression that I just didn't understand Yum behavior.  I spent a lot of time trying to see if there was a way to coerce it to try to use what was already installed. In the end, I came to the same conclusion and manually installing the dependency (your solution) did the trick.

Apologies for the out-of-scope question. Not a beginner, but certainly still a lot to learn about what is "normal" yum behavior. smile

Re: remi-php56: php-pecl-redis-2.2.7 + php-5.6.16

Solved smile

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi