Yum update php to 5.2.x on CentOS

The current php version with CentOS is 5.1.6. Even epel repository’s php is 5.1.6. I am disappointed with epel slow up-to-date, but I found three 3rd party repositories to update php. Installation of these repositories are slightly diffferent.

  • remi repo has php 5.2.9. To install, just run

    rpm -Uvh http://rpms.famillecollet.com/enterprise/5/remi/x86_64/remi-release-5-7.el5.remi.noarch.rpm

  • atomic repo has php 5.2.9. To install, download this script and run it

    wget http://www.atomicorp.com/installers/atomic.sh

  • james’ utterramblings repo has php 5.2.6. To install, import GPG key first

    rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

    create a repo file manually with the following content

    [utterramblings]
    name=Jason's Utter Ramblings Repo
    baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
    enabled=1
    gpgcheck=1
    gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

Leave a comment

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