Saturday, March 27, 2010

Upgrade to PHP 5.2.10 - CentOS5 using YUM


There is a version of PHP (5.2.10) in CentOS’s Testing repository. You could either download each rpm and install, or set up your yum to install from the testing repository.
Install the testing repository’s GPG key:
rpm --import http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
And download the CentOS-Testing repo file:
cd /etc/yum.repos.d
wget http://dev.centos.org/centos/5/CentOS-Testing.repo
Now you can install/update to PHP 5.2.10 by running
yum --disablerepo=* --enablerepo=c5-testing update php

1 comment:

Developer Instincts