1

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?

1 Answer 1

1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .