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

name=CentOS-5 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.

1 Answer 1


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



yum --enablerepo=c5-testing ...
  • Thanks, that was so simple ! one more question: It only list the 5.2.10 and not the 5.2.9, I tried : yum install php-5.2.9-2.el5.centos.x86_64.rpm --> No package php-5.2.9-2.el5.centos.x86_64.rpm available.
    – Bastien974
    Jan 5, 2011 at 21:51
  • I imagine that the more recent 5.2.10 package masks this version. If you really want the older version, you can do (a) download the package locally (wget http://dev.centos.org/centos/5/testing/x86_64/RPMS/php-5.2.9-2.el5.centos.x86_64.rpm) and then install it with yum (yum install php-5.2.9-2.el5.centos.x86_64.rpm). This will pull in all the dependencies.
    – larsks
    Jan 5, 2011 at 21:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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