Friday, March 20, 2009

Using CentOS 5 testing repositories

CentOS does make a good Linux distro. Still users will want stuff that is still in the pipeline or testing.

One good example is that CentOS 5.2 comes with PHP 5.1. However many web developers have moved to PHP 5.2 and this is available in the testing repo. Below is one command to upgrade the existing PHP.

Step 1: Switch to root.

Step 2: Add the testing repo
# cd /etc/yum.repos.d
# wget http://dev.centos.org/centos/5/CentOS-Testing.repo

This will containg the following:
[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

Step 3: Update PHP.
yum --en=c5-testing update php*

No comments:

Blog Archive