Add Additional Repository on CentOS

repository

CentOS is the best Server distro for the people. Some people, like me, are frustrated at the fact that some software is slow to be updated out of a fresh install: specially PHP.

At the time of this writing, PHP 5.1.x is the version shipped with CentOS 5.4. But my team requires to write application on PHP 5.2.x, so i have to update PHP installation from PHP 5.1.x to PHP 5.2.x by adding additional repository as follows.

Adding Repository

cd /etc/yum.repos.d

Create file centos-test.repo as follows.

 vi /etc/yum.repos.d/centos-test.repo

And add the following Lines in file:

[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/5/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing

Now use following command to install updtaed version of PHP from test Repository.

yum install php

That’s all

One comment

  1. andrei says:

    their testing repo doesn’t have php-apc and php-mcrypt packages arghhh

Leave a Reply

Your email address will not be published. Required fields are marked *

*