Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We are running a CentOS 6 node using iuscommunity repo, and want to upgrade previously installed php53u to php54.

However, this introduces a dependency conflict between php53u & php54. Does anyone have idea for this problem?

--> Running transaction check
---> Package php54-fpm.i686 0:5.4.5-1.ius.el6 will be installed
--> Processing Dependency: php-common = 5.4.5-1.ius.el6 for package: php54-fpm-5.4.5-1.ius.el6.i686
---> Package php54-gd.i686 0:5.4.5-1.ius.el6 will be installed
---> Package php54-mbstring.i686 0:5.4.5-1.ius.el6 will be installed
---> Package php54-pecl-apc.i686 0:3.1.11-2.ius.el6 will be installed
--> Processing Dependency: php54 >= 5.3.5-1 for package: php54-pecl-apc-3.1.11-2.ius.el6.i686
--> Running transaction check
---> Package php54.i686 0:5.4.5-1.ius.el6 will be installed
--> Processing Dependency: php54-cli = 5.4.5-1.ius.el6 for package: php54-5.4.5-1.ius.el6.i686
---> Package php54-common.i686 0:5.4.5-1.ius.el6 will be installed
--> Running transaction check
---> Package php54-cli.i686 0:5.4.5-1.ius.el6 will be installed
--> Processing Conflict: php54-5.4.5-1.ius.el6.i686 conflicts php53u
--> Processing Conflict: php54-5.4.5-1.ius.el6.i686 conflicts php < 5.4
--> Finished Dependency Resolution
Error: php54 conflicts with php53u
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
share|improve this question
Using 3rd party repo introduces these problems. Your best bet is to backup the config files, erase php53u and install php54. – Chida Aug 12 '12 at 11:37
up vote 5 down vote accepted

Have you tried removing php53u? A simple:

yum remove php53u

Followed by:

yum install php54

Should be doing the trick for you. If it does not, then you can try removing the php53u package(s) using the 'rpm' tool, leaving dependencies intact, but first check the list of packages installed so you can later re-install them from the new php54 repository:

rpm -qa | grep ^php53u.* > /root/php-packages.log

Keep a copy of the list produced. On one of my servers, this list looks like:

$ rpm -qa | grep ^php54*

I can then remove these, without removing dependencies, as such:

for p in $( cat /root/php-packages.log ); do rpm -e --nodeps $p; done

(Note that I am using 'php54' here, you will need to use 'php53u').

Once you've done this, simply install the php54 package(s) via yum:

yum install php54

OR you can some-what automate the re-installation of everything:

yum install $( cat /root/php-packages.log | sed 's/php53u/php54/g' )


Here's a one liner for the whole thing:

rpm -qa | grep ^php53u.* > /root/php-packages.log; for p in $( cat /root/php-packages.log ); do rpm -e --nodeps $p; done; yum install $( cat /root/php-packages.log | sed 's/php53u/php54' ) -y

I hope this helps :-)

share|improve this answer
Another way to do replacement without too much concern about dependencies is to invoke yum shell and do the remove and install in a single transaction. – Charles Aug 12 '12 at 15:27

Another way to do this is to use the yum plugin yum-plugin-replace (as described at

yum install yum-plugin-replace

After that you can replace it via:

yum replace php53u --replace-with php54

This is the recommended way by ius as it will also try to find replacements for all installed dependencies as necessary.

share|improve this answer
This needs SOO much more than 2 upvotes! Seamless and no hassle! – Deanna Feb 6 at 13:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.