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.

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70

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 ?

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70

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

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70