Php – CentOS package not available

centos5PHPyum

I installed a CentOS 5.5 and the default php package is 5.1.6.
I want to install 5.2.9, so I added /etc/yum.repo.d/CentOS-Testing.repo

[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=0
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing

php-5.2.9-2.el5.centos.x86_64.rpm is available http://dev.centos.org/centos/5/testing/x86_64/RPMS/

So I tried: yum clean all, yum search php-5.2.9-2.el5.centos.x86_64.rpm
–> Warning: No matches found for: php-5.2.9-2.el5.centos.x86_64.rpm

What I am doing wrong ?
Thanks for your help.

Best Answer

You've told yum to ignore this repository by setting enabled=0 in the configuration. You can either set:

enabled=1

Or:

yum --enablerepo=c5-testing ...