Home > Backend Development > PHP Tutorial > 平添yum源 :yum install PHP 5.2

平添yum源 :yum install PHP 5.2

WBOY
Release: 2016-06-13 10:38:43
Original
1249 people have browsed it

添加yum源 :yum install PHP 5.2

喜欢CentOS 的原因之一他有yum ,有些依赖包安装起来很方便!但有个缺点就是yum 的库都不是最新的包,如php 用官方yum来安装只是5.1版的,由于开发需要安装php 5.2 或以上的版本,又想通过yum 来安装,所以网上找了个 yum install php5.2 的方法,贴出来给大家分享一下。

?

??? 安装相应的GPG key

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

??? 新建一个repo

# /etc/yum.repos.d/utterramblings.repo

??? 把以下内容添加进去,保存退出就OK了

[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

?

?

??? 就这么简单!呵呵,现在可以试试了

yum install php

??? 安装出来的就是 php5.2

?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template