#yum -y install yum-fastestmirror 等待安装完成即可!
以后就yum自动检测记录镜像的速度了
哈哈。。 很多时候我排第二个的镜像是最快的,到下载文件的时候ctrl+c取消一次,就用第二个了,快!全速,呵呵
配置文件:(一般不用动) /etc/yum/pluginconf.d/fastestmirror.conf 你的yum镜像的速度测试记录文件: /var/cache/yum/timedhosts.txt
cd /etc/yum.repos.d mv CentOS-Base.repo CentOS-Base.repo.save wget http://centos.ustc.edu.cn/CentOS-Base.repo.5 mv CentOS-Base.repo.5 CentOS-Base.repo
yum install -y ntp vim-enhanced gcc gcc-c++ gcc-g77 flex bison autoconf automake bzip2-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel kernel
默认yum只更新到5.1,以下方法设置后能升级到5.2.6
rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
vim /etc/yum.repos.d/utterramblings.repo
Now in the window paste this:
[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
Now push Ctrl+C, write :w and push enter to save the file, write :quit and enter to exit vim.
You can update using “yum update”
yum list php
已经测试成功,见: http://hi.baidu.com/ksw520/blog/item/2341b2ec7704892062d09fda.html
http://centos.ustc.edu.cn/centos/5.3/os/i386/RPM-GPG-KEY-CentOS-5
chkconfig