Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I managed to upgrade php from 5.2.10 to 5.3.8 in CentOS 5.4. Some of the extensions were lost in the process (mbstring, mysql).

One quick run for:

yum list installed | grep php

Returns:

  • php.x86_64
  • php-cli.x86_64
  • php-common.x86_64
  • php-pear.noarch
  • php-pecl-igbinary.x86_64
  • php-pecl-memcached.x86_64

When I try to install new extensions:

yum install php-mbstring

I get this error message:

Transaction Summary ================================================================================ Install 3 Package(s) Upgrade 0 Package(s)

Total size: 3.6 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test

Transaction Check Error: package php-common-5.3.8-5.el5.remi.1.x86_64 (which is newer than php-common-5.2.10-1.el5.centos.i386) is already installed file /etc/php.ini from install of php-common-5.2.10-1.el5.centos.i386 conflicts with file from package php-common-5.3.8-5.el5.remi.1.x86_64

Practically the same happens with yum install php-mysql

How do I get rid of those old versions?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I guess that the remi repo is disabled by the default, verify with yum repolist or grep enabled /etc/yum.repos.d/remi.repo. When you install php-mbstring, it is pulling from base repo. So, try this:

# yum --enablerepo=remi install php-mbstring
share|improve this answer

Your Answer

 
discard

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.