Yum升级最新版软件

Standard

同学搬了台机器去机房,让我帮忙管一下. ssh上去花了十多分钟把web、ftp、mysql都弄好了,结果他就是不想要默认的版本,非要都装最新版. 和他解释并非新版就好也听不进呀. 算啦,只好都升极喽:)

先是要把PHP从5.1升到5.2. 结果 yum update php 后发现系统默认的rpm仓库里没有最新版的. 网上查了查再加了个仓库进去,这里面东西到非常新.

rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
 
vi /etc/yum.repos.d/utterramblings.repo
[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 update phpyum update mysql 就都能找着最新版本了.

2 thoughts on “Yum升级最新版软件

Leave a Reply to Cat. Cancel reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.