CentOS软件包不可用

我安装了一个CentOS 5.5,默认的php包是5.1.6。 我想安装5.2.9,所以我添加了/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可用http://dev.centos.org/centos/5/testing/x86_64/RPMS/

所以我试过: yum干净所有yumsearchphp-5.2.9-2.el5.centos.x86_64.rpm – >警告:找不到匹配的结果:php-5.2.9-2.el5.centos.x86_64.rpm

我做错了什么? 谢谢你的帮助。

你已经告诉yum通过在configuration中设置enabled=0忽略这个存储库。 你可以设置:

 enabled=1 

要么:

 yum --enablerepo=c5-testing ...