Topic: Unable to update php using remi repository

I used to following command to install php
yum --enablerepo=remi,remi-php55  install -y -q  php-fpm php-cli php-gd  php-xml php-xmlrpc  php-mbstring php-tidy php-common php-pecl-ssh2

However when i use the following command to update php , i get the following error
yum --enablerepo=remi,remi-php55 update
Loaded plugins: fastestmirror, priorities, security
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: mirror.fdcservers.net
* epel: mirror.compevo.com
* extras: mirror.fdcservers.net
* remi: mirrors.mediatemple.net
* remi-php55: mirrors.mediatemple.net
* updates: mirror.fdcservers.net
1642 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package php-opcache.x86_64 0:5.5.19-1.el6.remi will be updated
---> Package php-opcache.x86_64 0:5.5.19-2.el6.remi will be an update
--> Processing Dependency: php-common(x86-64) = 5.5.19-2.el6.remi for package: php-opcache-5.5.19-2.el6.remi.x86_64
--> Finished Dependency Resolution
Error: Package: php-opcache-5.5.19-2.el6.remi.x86_64 (remi-php55)
           Requires: php-common(x86-64) = 5.5.19-2.el6.remi
           Installed: php-common-5.5.19-1.el6.remi.x86_64 (@remi-php55)
               php-common(x86-64) = 5.5.19-1.el6.remi
           Available: php-common-5.3.3-38.el6.x86_64 (base)
               php-common(x86-64) = 5.3.3-38.el6
           Available: php-common-5.3.3-40.el6_6.x86_64 (updates)
               php-common(x86-64) = 5.3.3-40.el6_6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Here is how my priorities are set

priority = 10 [base]
priority = 10 [extras]
priority = 10 [updates]
priority = 20 [centosplus]
priority = 65 [epel]
priority = 80 [remi]

Basically i want the remi repository to only update php packages and let epel handle the rest.

Thanks for your help

Regards

Re: Unable to update php using remi repository

> 1642 packages excluded due to repository priority protections

Remi must have higher priority than base.
In your output, only php-opcache is pulled, because not available in base.

If you want to use remi only for php you have to use the "includepkgs" directive, not the priority.

ex:

includepkgs=php* *last*

-last packages are also mandatory, they are parallel installable libraries, required by php.

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: Unable to update php using remi repository

Thanks for the quick response

I have made remi a higher priority than base

priority = 5 [remi]
priority = 10 [base]
priority = 10 [extras]
priority = 10 [updates]
priority = 20 [centosplus]
priority = 65 [epel]

and i executed the following common

yum clean all

But still i get same error

yum --enablerepo=remi,remi-php55 update
Loaded plugins: fastestmirror, priorities, security
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: repos.dfw.quadranet.com
* epel: mirrors.cat.pdx.edu
* extras: repos.dfw.quadranet.com
* remi: mirrors.mediatemple.net
* remi-php55: mirrors.mediatemple.net
* updates: repos.dfw.quadranet.com
1184 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package php-opcache.x86_64 0:5.5.19-1.el6.remi will be updated
---> Package php-opcache.x86_64 0:5.5.19-2.el6.remi will be an update
--> Processing Dependency: php-common(x86-64) = 5.5.19-2.el6.remi for package: php-opcache-5.5.19-2.el6.remi.x86_64
--> Finished Dependency Resolution
Error: Package: php-opcache-5.5.19-2.el6.remi.x86_64 (remi-php55)
           Requires: php-common(x86-64) = 5.5.19-2.el6.remi
           Installed: php-common-5.5.19-1.el6.remi.x86_64 (@remi-php55)
               php-common(x86-64) = 5.5.19-1.el6.remi
           Available: php-common-5.4.34-1.el6.remi.x86_64 (remi)
               php-common(x86-64) = 5.4.34-1.el6.remi
           Available: php-common-5.4.35-1.el6.remi.x86_64 (remi)
               php-common(x86-64) = 5.4.35-1.el6.remi
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Thanks again for the help Remi

Re: Unable to update php using remi repository

Which is the priority of remi-php55 ?

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: Unable to update php using remi repository

Ahh i forgot to set priority for remi-php55 .I set it same as remi ( i.e 5) and it worked

Re: Unable to update php using remi repository

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