Guía para actualizar php 5.1.6 en CentOS 5.X a php 5.2, utilizando un repositorio oficial de CentOS.
Añadir repositorio de desarrollo
# vim /etc/yum.repos.d/CentOS-Testing.repo
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
includepkgs=php*
# yum update
yum update
Loaded plugins: rhnplugin, security
http://dev.centos.org/centos/5Server/testing/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: c5-testing. Please verify its path and try again