3
1
I am not able to update my PHP in centos 6.
I have centos base, epel and rpmforge repos.
yum update php
Error: Package: php-tidy-5.3.3-14.el6_3.x86_64 (@updates) Requires: php-common = 5.3.3-14.el6_3 Removing: php-common-5.3.3-14.el6_3.x86_64 (@updates) php-common = 5.3.3-14.el6_3 Updated By: php-common-5.3.3-23.el6_4.x86_64 (updates) php-common = 5.3.3-23.el6_4 Available: php-common-5.3.3-22.el6.x86_64 (base) php-common = 5.3.3-22.el6 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest .. install failed!
I believe php-tidy has been excluded due to repo priority. How do it fix it?
EDIT
epel.repo has "priority = 10"
Could it be a reason?
yum update -d3
gives list of excluded updates. --> php-tidy-5.3.3-22.el6.x86_64 from base excluded (priority)
"No Packages marked for Update." I guess it is because PHP updates are in base. – Mahesh – 2013-08-24T09:30:38.210
--> php-tidy-5.3.3-22.el6.x86_64 from base excluded (priority) - This is causing the problem. I m not able to fix it – Mahesh – 2013-08-24T09:47:25.037
Have you tried disabling the repositories as suggested and enabling the repository you're trying to install php from? You most likely have conflicting priorities. Can you
grep -ri priority /etc/yum.*
and update your question with this output? – andrew – 2013-08-24T10:12:22.113I tried the command in your answer. Tried both epel and rpmforge both says "No package marked for update." grep for priority says epel.repo has priority = 10 – Mahesh – 2013-08-24T10:15:49.153
Most likely. Give
yum --disablerepo "*" --enablerepo "base updates" update php
a shot. – andrew – 2013-08-24T10:17:57.853Error getting repository data for base updates, repository not found.
– Mahesh – 2013-08-24T10:30:27.127Yeah, that was my fault. I realized it shortly after running that same command on my test box. It should be
yum --disablerepo "*" --enablerepo "updates" update php
. – andrew – 2013-08-24T10:34:10.947