I am running a Centos 6 server. After some non-successful attempts to install php 7.2 I have dependencies problems (trying yum update php):
So what is the best and safest way to reinstall php?
--> Running transaction check
---> Package libwebp.x86_64 0:0.4.3-3.el6 will be installed
---> Package php56w-common.x86_64 0:5.6.40-1.w6 will be obsoleted
--> Processing Dependency: php56w-common(x86-64) = 5.6.40-1.w6 for package: php56w-phpdbg-5.6.40-
1.w6.x86_64
--> Finished Dependency Resolution
Error: Package: php56w-phpdbg-5.6.40-1.w6.x86_64 (@webtatic)
Requires: php56w-common(x86-64) = 5.6.40-1.w6
Removing: php56w-common-5.6.40-1.w6.x86_64 (@webtatic)
php56w-common(x86-64) = 5.6.40-1.w6
Obsoleted By: php-common-7.2.34-1.el6.remi.x86_64 (remi-php72)
Not found
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
2
Answers
I would suggest you to install remi repository for installing php 7.2. You can also switch between versions of php.
For installing
For enabling php 7.2
Have a look here also here for more details
While upgrade from 3rd party repository to remi should work smoothly (this being a best effort), you have been hitten by an (old) issue, php-dbg should obsolete php56w-phpdbg. This have ben fixed, and will be in next update.
For now, simply remove this debugger before the upgrade.
As usually, see the Wizard instructions.
P.S. webtatic seems a dead project, no update for ~1 year, so everybody should migrate to a better alternative, such as "remi" repository.