CentOS de PHP 5.1 a 5.2
para hacer este upgrade version primero verifiquemos con cuales nuestro sistema cuenta:
<br /> # rpm -qa |grep php</p> <p> php-common-5.1.6-15.el5.i386<br /> php-cli-5.1.6-15.el5.i386<br /> php-5.1.6-15.el5.i386<br /> php-pdo-5.1.6-15.el5.i386<br /> php-bcmath-5.1.6-15.el5.i386<br /> php-ldap-5.1.6-15.el5.i386<br /> php-devel-5.1.6-15.el5.i386<br /> php-gd-5.1.6-15.el5.i386<br /> php-xml-5.1.6-15.el5.i386<br /> php-mbstring-5.1.6-15.el5.i386<br /> php-mysql-5.1.6-15.el5.i386<br /> php-dba-5.1.6-15.el5.i386<br />
ahora bien para nuestro upgrade tenemos que agregar un nuevo repo, !ojo! con este cambio pues algunos de los demas paquetes que contiene pueden ser bastante inestables.
# nano /etc/yum.repos.d/CentOS-Testing.repo
dentro de este archivo copiamos tal cual lo siguiente:
</p> <p># CentOS-Testing:<br /> # !!!! CAUTION !!!!<br /> # This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.<br /> # They may or may not replace core CentOS packages, and are not guaranteed to function properly.<br /> # These packages build and install, but are waiting for feedback from testers as to<br /> # functionality and stability. Packages in this repository will come and go during the<br /> # development period, so it should not be left enabled or used on production systems without due<br /> # consideration.<br /> [c5-testing]<br /> name=CentOS-5 Testing<br /> baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/<br /> enabled=1<br /> gpgcheck=1<br /> gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing<br /> includepkgs=php*<br />
por si algo se nos olvidara vamos a activar nuestro nuevo repo, actualizando…
# yum update
ahora si dentro de los paquetes disponibles ya contaremos con la nueva version
<br /> # rpm -qa |grep php</p> <p> php-cli-5.2.6-2.el5s2<br /> php-mbstring-5.2.6-2.el5s2<br /> php-devel-5.2.6-2.el5s2<br /> php-pdo-5.2.6-2.el5s2<br /> php-gd-5.2.6-2.el5s2<br /> php-dba-5.2.6-2.el5s2<br /> php-common-5.2.6-2.el5s2<br /> php-bcmath-5.2.6-2.el5s2<br /> php-xml-5.2.6-2.el5s2<br /> php-pear-1.5.1-2.el5s2<br /> php-ldap-5.2.6-2.el5s2<br /> php-5.2.6-2.el5s2<br /> php-mysql-5.2.6-2.el5s2</p> <p> # php -v</p> <p> PHP 5.2.6 (cli) (built: Sep 15 2008 20:42:05)<br /> Copyright (c) 1997-2008 The PHP Group<br /> Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies<br />