CentOS php-common during updating PHP 5.2.13 version trouble

I went stumble with this php-common package which errs when I tried to install the PHP 5.2.13 version.

So what I did, I do the command

yum whatprovides php-curl
And the result gives me the following lines below:

Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: p3plmirror02.prod.phx3.secureserver.net
* base: p3plmirror02.prod.phx3.secureserver.net
* extras: p3plmirror02.prod.phx3.secureserver.net
* turbopanel-base: p3plmirror02.prod.phx3.secureserver.net
* turbopanel-centos5: p3plmirror02.prod.phx3.secureserver.net
* update: p3plmirror02.prod.phx3.secureserver.net
addons | 951 B 00:00
addons/primary | 201 B 00:00
base | 2.1 kB 00:00
base/primary_db | 1.6 MB 00:00
extras | 1.1 kB 00:00
extras/primary | 107 kB 00:00
extras 325/325
turbopanel-base | 951 B 00:00
turbopanel-base/primary | 72 kB 00:00
turbopanel-base 494/494
turbopanel-centos5 | 951 B 00:00
turbopanel-centos5/primary | 2.1 kB 00:00
turbopanel-centos5 8/8
update | 1.9 kB 00:00
update/primary_db | 463 kB 00:00
php-common-5.1.6-23.2.el5_3.i386 : Common files for PHP
Repo : base
Matched from:
Other : php-curl



php-common-5.1.6-24.el5_4.5.i386 : Common files for PHP
Repo : update
Matched from:
Other : php-curl



php-common-5.3.2-1.i386 : Common files for PHP
Repo : installed
Matched from:
Other : Provides-match: php-curl


Indeed, I do have 5.3.2--the latest PHP release, as of this posting--but I do need yet 5.2 version because of incompatibilities with the code which has done thru a rigorous testing.

Since php-common has (-) dash inside the string, so I issue this command to remove the package php-common

yum remove php*5*3*
My main purpose of removing it was that, I installed the PHP 5.3 which is not the needed version of PHP I want, and php-common confuses the installation/update, indeed backward installation.

After this, installing PHP by issuing the command
yum --disablerepo=* --enablerepo=webtatic --exclude=php*5.3* install php

installs everything that I need. Notice the repository named "webtatic", I installed this repo from it's website, or read this link how did I grab it or you can also try this repo from remi


Issuing the command

php -v

shows

PHP 5.2.13 (cli) (built: Feb 28 2010 16:22:50)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
Hope this makes helpful.

Comments

Josh said…
Very helpful,

Thanks for the nice tutorial, bookmarking this blog!

Popular posts from this blog

Using Oracle 11g thru VirtualBox appliance in Mac OS X Lion

Use Shell Editor for Eclipse for editing bash, ksh, csh in Unix/Linux system

LVM: How to remove a volume using pvremove