php升级
linux下php快速升级 5.2.6由于linux默认yum源安装的是php 5.1的包,
yum安装php以后查看
rpm -qa php
php-5.1.6-23.2.el5_3
由于有的程序需要使用php5.2以上的版本
于是就找起了资料,终于找到有介绍如下添加一个额外的源:
# rpm –import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
# gedit /etc/yum.repos.d/utterramblings.repo
或者直接修改/etc/yum.repos.d/utterramblings.repo 名字可以自己定义要以.repo结尾如abc.repo
在打开的文件中加入以下内容:
[abc]
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
执行yum update php 如图所示 ,
# yum update php
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
utterramblings | 951 B 00:00
utterramblings/primary | 39 kB 00:03
utterramblings 140/140
Skipping security plugin, no data
Setting up Update Process
Resolving Dependencies
Skipping security plugin, no data
–> Running transaction check
–> Processing Dependency: php = 5.1.6-23.2.el5_3 for package: php-devel
—> Package php.i386 0:5.2.16-jason.1 set to be updated
–> Processing Dependency: php-common = 5.2.16-jason.1 for package: php
–> Processing Dependency: php-cli = 5.2.16-jason.1 for package: php
–> Running transaction check
—> Package php-cli.i386 0:5.2.16-jason.1 set to be updated
。。。。。。。。
已经有新的php包尅更新
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
php i386 5.2.16-jason.1 abc 3.6 M
Installing for dependencies:
mysqlclient15 i386 5.0.91-1.jason.1 abc 2.0 M
Updating for dependencies:
mysql i386 5.1.52-jason.1 abc 3.5 M
mysql-bench i386 5.1.52-jason.1 &nb