Topic: Dependencies when installing php80-php-mbstring

Hello!
We have a host with centos 7, it has PHP 7.1, 7.3, 7.4 and 8.0 installed.
It was necessary to install the php80-php-mbstring module, but when installing it from the remi-safe repository, the module wants to update many packages for PHP 7.3 and 7.4 as dependencies:

# yum install php80-php-mbstring
Loaded plugins: axelget, fastestmirror, langpacks
No metadata available for Altinity_clickhouse
No metadata available for Altinity_clickhouse-source
No metadata available for base
No metadata available for cassandra
No metadata available for elrepo
No metadata available for epel
No metadata available for extras
No metadata available for itsumma
No metadata available for nginx
No metadata available for nux-dextop
No metadata available for percona-release-noarch
No metadata available for percona-release-x86_64
repomd.xml                                                                                                                                                                                                            | 3.0 kB  00:00:00
update remi-php80 metadata successfully
No metadata available for remi-safe
No metadata available for rpmfusion-free-updates
No metadata available for updates
remi-php80                                                                                                                                                                                                            | 3.0 kB  00:00:00
remi-php80/primary_db                                                                                                                                                                                                 | 208 kB  00:00:00
Loading mirror speeds from cached hostfile
 * base: mirrors.datahouse.ru
 * elrepo: mirrors.nav.ro
 * epel: mirror.logol.ru
 * extras: mirrors.datahouse.ru
 * nux-dextop: mirror.li.nux.ro
 * remi-php80: mirror.reconn.ru
 * remi-safe: mirror.reconn.ru
 * rpmfusion-free-updates: mirror.netsite.dk
 * updates: mirrors.datahouse.ru
Resolving Dependencies
--> Running transaction check
---> Package php80-php-mbstring.x86_64 0:8.0.17-1.el7.remi will be installed
--> Processing Dependency: libonig.so.105()(64bit) for package: php80-php-mbstring-8.0.17-1.el7.remi.x86_64
--> Running transaction check
---> Package oniguruma5.x86_64 0:6.9.4-1.el7.remi will be obsoleted
--> Processing Dependency: libonig.so.5()(64bit) for package: php73-php-mbstring-7.3.14-1.el7.remi.x86_64
--> Processing Dependency: libonig.so.5()(64bit) for package: php74-php-mbstring-7.4.2-1.el7.remi.x86_64
---> Package oniguruma5php.x86_64 0:6.9.7.1-1.el7.remi will be obsoleting
--> Running transaction check
---> Package php73-php-mbstring.x86_64 0:7.3.14-1.el7.remi will be updated
---> Package php73-php-mbstring.x86_64 0:7.3.33-1.el7.remi will be an update
--> Processing Dependency: php73-php-common(x86-64) = 7.3.33-1.el7.remi for package: php73-php-mbstring-7.3.33-1.el7.remi.x86_64
---> Package php74-php-mbstring.x86_64 0:7.4.2-1.el7.remi will be updated
---> Package php74-php-mbstring.x86_64 0:7.4.28-1.el7.remi will be an update
--> Processing Dependency: php74-php-common(x86-64) = 7.4.28-1.el7.remi for package: php74-php-mbstring-7.4.28-1.el7.remi.x86_64
--> Running transaction check
---> Package php73-php-common.x86_64 0:7.3.14-1.el7.remi will be updated
--> Processing Dependency: php73-php-common(x86-64) = 7.3.14-1.el7.remi for package: php73-php-bcmath-7.3.14-1.el7.remi.x86_64
--> Processing Dependency: php73-php-common(x86-64) = 7.3.14-1.el7.remi for package: php73-php-pspell-7.3.14-1.el7.remi.x86_64
--> Processing Dependency: php73-php-common(x86-64) = 7.3.14-1.el7.remi for package: php73-php-gd-7.3.14-1.el7.remi.x86_64
--> Processing Dependency: php73-php-common(x86-64) = 7.3.14-1.el7.remi for package: php73-php-json-7.3.14-1.el7.remi.x86_64
--> Processing Dependency: php73-php-common(x86-64) = 7.3.14-1.el7.remi for package: php73-php-gmp-7.3.14-1.el7.remi.x86_64
--> Processing Dependency: php73-php-common(x86-64) = 7.3.14-1.el7.remi for package: php73-php-fpm-7.3.14-1.el7.remi.x86_64
--> Processing Dependency: php73-php-common(x86-64) = 7.3.14-1.el7.remi for package: php73-php-cli-7.3.14-1.el7.remi.x86_64
--> Processing Dependency: php73-php-common(x86-64) = 7.3.14-1.el7.remi for package: php73-php-intl-7.3.14-1.el7.remi.x86_64
--> Processing Dependency: php73-php-common(x86-64) = 7.3.14-1.el7.remi for package: php73-php-recode-7.3.14-1.el7.remi.x86_64
--> Processing Dependency: php73-php-common(x86-64) = 7.3.14-1.el7.remi for package: php73-php-pdo-7.3.14-1.el7.remi.x86_64
--> Processing Dependency: php73-php-common(x86-64) = 7.3.14-1.el7.remi for package: php73-php-tidy-7.3.14-1.el7.remi.x86_64
--> Processing Dependency: php73-php-common(x86-64) = 7.3.14-1.el7.remi for package: php73-php-ldap-7.3.14-1.el7.remi.x86_64
--> Processing Dependency: php73-php-common(x86-64) = 7.3.14-1.el7.remi for package: php73-php-xml-7.3.14-1.el7.remi.x86_64
--> Processing Dependency: php73-php-common(x86-64) = 7.3.14-1.el7.remi for package: php73-php-7.3.14-1.el7.remi.x86_64
--> Processing Dependency: php73-php-common(x86-64) = 7.3.14-1.el7.remi for package: php73-php-opcache-7.3.14-1.el7.remi.x86_64
---> Package php73-php-common.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php74-php-common.x86_64 0:7.4.2-1.el7.remi will be updated
--> Processing Dependency: php74-php-common(x86-64) = 7.4.2-1.el7.remi for package: php74-php-cli-7.4.2-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.2-1.el7.remi for package: php74-php-xml-7.4.2-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.2-1.el7.remi for package: php74-php-pdo-7.4.2-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.2-1.el7.remi for package: php74-php-gmp-7.4.2-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.2-1.el7.remi for package: php74-php-bcmath-7.4.2-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.2-1.el7.remi for package: php74-php-fpm-7.4.2-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.2-1.el7.remi for package: php74-php-intl-7.4.2-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.2-1.el7.remi for package: php74-php-json-7.4.2-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.2-1.el7.remi for package: php74-php-gd-7.4.2-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.2-1.el7.remi for package: php74-php-tidy-7.4.2-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.2-1.el7.remi for package: php74-php-opcache-7.4.2-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.2-1.el7.remi for package: php74-php-ldap-7.4.2-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.2-1.el7.remi for package: php74-php-pspell-7.4.2-1.el7.remi.x86_64
---> Package php74-php-common.x86_64 0:7.4.28-1.el7.remi will be an update
--> Running transaction check
---> Package php73-php.x86_64 0:7.3.14-1.el7.remi will be updated
---> Package php73-php.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php73-php-bcmath.x86_64 0:7.3.14-1.el7.remi will be updated
---> Package php73-php-bcmath.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php73-php-cli.x86_64 0:7.3.14-1.el7.remi will be updated
--> Processing Dependency: php73-php-cli(x86-64) = 7.3.14-1.el7.remi for package: php73-php-devel-7.3.14-1.el7.remi.x86_64
---> Package php73-php-cli.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php73-php-fpm.x86_64 0:7.3.14-1.el7.remi will be updated
---> Package php73-php-fpm.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php73-php-gd.x86_64 0:7.3.14-1.el7.remi will be updated
---> Package php73-php-gd.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php73-php-gmp.x86_64 0:7.3.14-1.el7.remi will be updated
---> Package php73-php-gmp.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php73-php-intl.x86_64 0:7.3.14-1.el7.remi will be updated
---> Package php73-php-intl.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php73-php-json.x86_64 0:7.3.14-1.el7.remi will be updated
---> Package php73-php-json.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php73-php-ldap.x86_64 0:7.3.14-1.el7.remi will be updated
---> Package php73-php-ldap.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php73-php-opcache.x86_64 0:7.3.14-1.el7.remi will be updated
---> Package php73-php-opcache.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php73-php-pdo.x86_64 0:7.3.14-1.el7.remi will be updated
--> Processing Dependency: php73-php-pdo(x86-64) = 7.3.14-1.el7.remi for package: php73-php-mysqlnd-7.3.14-1.el7.remi.x86_64
---> Package php73-php-pdo.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php73-php-pspell.x86_64 0:7.3.14-1.el7.remi will be updated
---> Package php73-php-pspell.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php73-php-recode.x86_64 0:7.3.14-1.el7.remi will be updated
---> Package php73-php-recode.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php73-php-tidy.x86_64 0:7.3.14-1.el7.remi will be updated
---> Package php73-php-tidy.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php73-php-xml.x86_64 0:7.3.14-1.el7.remi will be updated
--> Processing Dependency: php73-php-xml(x86-64) = 7.3.14-1.el7.remi for package: php73-php-xmlrpc-7.3.14-1.el7.remi.x86_64
---> Package php73-php-xml.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php74-php-bcmath.x86_64 0:7.4.2-1.el7.remi will be updated
---> Package php74-php-bcmath.x86_64 0:7.4.28-1.el7.remi will be an update
---> Package php74-php-cli.x86_64 0:7.4.2-1.el7.remi will be updated
--> Processing Dependency: php74-php-cli(x86-64) = 7.4.2-1.el7.remi for package: php74-php-devel-7.4.2-1.el7.remi.x86_64
---> Package php74-php-cli.x86_64 0:7.4.28-1.el7.remi will be an update
---> Package php74-php-fpm.x86_64 0:7.4.2-1.el7.remi will be updated
---> Package php74-php-fpm.x86_64 0:7.4.28-1.el7.remi will be an update
---> Package php74-php-gd.x86_64 0:7.4.2-1.el7.remi will be updated
---> Package php74-php-gd.x86_64 0:7.4.28-1.el7.remi will be an update
---> Package php74-php-gmp.x86_64 0:7.4.2-1.el7.remi will be updated
---> Package php74-php-gmp.x86_64 0:7.4.28-1.el7.remi will be an update
---> Package php74-php-intl.x86_64 0:7.4.2-1.el7.remi will be updated
---> Package php74-php-intl.x86_64 0:7.4.28-1.el7.remi will be an update
---> Package php74-php-json.x86_64 0:7.4.2-1.el7.remi will be updated
---> Package php74-php-json.x86_64 0:7.4.28-1.el7.remi will be an update
---> Package php74-php-ldap.x86_64 0:7.4.2-1.el7.remi will be updated
---> Package php74-php-ldap.x86_64 0:7.4.28-1.el7.remi will be an update
---> Package php74-php-opcache.x86_64 0:7.4.2-1.el7.remi will be updated
---> Package php74-php-opcache.x86_64 0:7.4.28-1.el7.remi will be an update
---> Package php74-php-pdo.x86_64 0:7.4.2-1.el7.remi will be updated
--> Processing Dependency: php74-php-pdo(x86-64) = 7.4.2-1.el7.remi for package: php74-php-mysqlnd-7.4.2-1.el7.remi.x86_64
---> Package php74-php-pdo.x86_64 0:7.4.28-1.el7.remi will be an update
---> Package php74-php-pspell.x86_64 0:7.4.2-1.el7.remi will be updated
---> Package php74-php-pspell.x86_64 0:7.4.28-1.el7.remi will be an update
---> Package php74-php-tidy.x86_64 0:7.4.2-1.el7.remi will be updated
---> Package php74-php-tidy.x86_64 0:7.4.28-1.el7.remi will be an update
---> Package php74-php-xml.x86_64 0:7.4.2-1.el7.remi will be updated
--> Processing Dependency: php74-php-xml(x86-64) = 7.4.2-1.el7.remi for package: php74-php-xmlrpc-7.4.2-1.el7.remi.x86_64
---> Package php74-php-xml.x86_64 0:7.4.28-1.el7.remi will be an update
--> Running transaction check
---> Package php73-php-devel.x86_64 0:7.3.14-1.el7.remi will be updated
---> Package php73-php-devel.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php73-php-mysqlnd.x86_64 0:7.3.14-1.el7.remi will be updated
---> Package php73-php-mysqlnd.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php73-php-xmlrpc.x86_64 0:7.3.14-1.el7.remi will be updated
---> Package php73-php-xmlrpc.x86_64 0:7.3.33-1.el7.remi will be an update
---> Package php74-php-devel.x86_64 0:7.4.2-1.el7.remi will be updated
---> Package php74-php-devel.x86_64 0:7.4.28-1.el7.remi will be an update
---> Package php74-php-mysqlnd.x86_64 0:7.4.2-1.el7.remi will be updated
---> Package php74-php-mysqlnd.x86_64 0:7.4.28-1.el7.remi will be an update
---> Package php74-php-xmlrpc.x86_64 0:7.4.2-1.el7.remi will be updated
---> Package php74-php-xmlrpc.x86_64 0:7.4.28-1.el7.remi will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================
 Package                                                       Arch                                              Version                                                          Repository                                            Size
=============================================================================================================================================================================================================================================
Installing:
 oniguruma5php                                                 x86_64                                            6.9.7.1-1.el7.remi                                               remi-safe                                            205 k
     replacing  oniguruma5.x86_64 6.9.4-1.el7.remi
 php80-php-mbstring                                            x86_64                                            8.0.17-1.el7.remi                                                remi-safe                                            488 k
Updating for dependencies:
 php73-php                                                     x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                            1.6 M
 php73-php-bcmath                                              x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                             79 k
 php73-php-cli                                                 x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                            3.3 M
 php73-php-common                                              x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                            654 k
 php73-php-devel                                               x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                            747 k
 php73-php-fpm                                                 x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                            1.7 M
 php73-php-gd                                                  x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                             83 k
 php73-php-gmp                                                 x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                             76 k
 php73-php-intl                                                x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                            188 k
 php73-php-json                                                x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                             73 k
 php73-php-ldap                                                x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                             85 k
 php73-php-mbstring                                            x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                            480 k
 php73-php-mysqlnd                                             x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                            184 k
 php73-php-opcache                                             x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                            248 k
 php73-php-pdo                                                 x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                            120 k
 php73-php-pspell                                              x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                             63 k
 php73-php-recode                                              x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                             60 k
 php73-php-tidy                                                x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                             72 k
 php73-php-xml                                                 x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                            178 k
 php73-php-xmlrpc                                              x86_64                                            7.3.33-1.el7.remi                                                remi-safe                                             89 k
 php74-php-bcmath                                              x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                             83 k
 php74-php-cli                                                 x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                            3.5 M
 php74-php-common                                              x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                            697 k
 php74-php-devel                                               x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                            759 k
 php74-php-fpm                                                 x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                            1.8 M
 php74-php-gd                                                  x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                             88 k
 php74-php-gmp                                                 x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                             80 k
 php74-php-intl                                                x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                            196 k
 php74-php-json                                                x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                             77 k
 php74-php-ldap                                                x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                             89 k
 php74-php-mbstring                                            x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                            487 k
 php74-php-mysqlnd                                             x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                            195 k
 php74-php-opcache                                             x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                            270 k
 php74-php-pdo                                                 x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                            125 k
 php74-php-pspell                                              x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                             67 k
 php74-php-tidy                                                x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                             77 k
 php74-php-xml                                                 x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                            174 k
 php74-php-xmlrpc                                              x86_64                                            7.4.28-1.el7.remi                                                remi-safe                                             93 k

Transaction Summary
=============================================================================================================================================================================================================================================
Install  2 Packages
Upgrade             ( 38 Dependent packages)

Total download size: 19 M
Is this ok [y/d/N]: 

According to the documentation, the only package dependency is php-common, it is already installed:
# yum list installed | grep php80 | grep common
php80-php-common.x86_64 8.0.17-1.el7.remi @remi-safe

Do not tell me what this is connected with and can this be somehow avoided? Since many sites are configured on PHP 7.3 and 7.4, for which they have not tested working with updated versions of PHP.

Re: Dependencies when installing php80-php-mbstring

This is expected to take benefit of latest onigurama version and of latest security fixes
(especially 7.3 and 7.4 are security mode only, so latest version is really recommended)

Sorry, but I don't have any workaround, and cannot support such old things
(7.3.14 and 7.4.2 are 2 years old)

Desktop: Fedora 35 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 34 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Dependencies when installing php80-php-mbstring

btw, workaround is to run each version inside a container... to avoid common dependency issues with shared libraries.

Desktop: Fedora 35 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 34 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi