六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 16|回复: 0

国内速度最快的centos5.4 yum(更新源)

[复制链接]

升级  18%

72

主题

72

主题

72

主题

举人

Rank: 3Rank: 3

积分
254
 楼主| 发表于 2013-1-28 18:59:25 | 显示全部楼层 |阅读模式
5.5时代又来了,更新下(10.6.11)
安装后请按照以下步骤修改CenOS-Base.repo,以后就可以方便的用yum安装软件了.cd /etc/yum.repos.dmv CentOS-Base.repo  CentOS-Base.repo.savewget http://centos.ustc.edu.cn/CentOS-Base.repo.5mv CentOS-Base.repo.5 CentOS-Base.repo 
 
 
第一步:修改/etc/yum.repos.d/CentOS- Base.repo为:
[base] name=CentOS-5 - Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch& repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ baseurl=http://ftp.sjtu.edu.cn/centos/5.4/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5#released updates [update] name=CentOS-5 - Updates #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates baseurl=http://ftp.sjtu.edu.cn/centos/5.4/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5#packages used/produced in the build but not released [addons] name=CentOS-5 - Addons #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addonsbaseurl=http://ftp.sjtu.edu.cn/centos/5.4/addons/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5#additional packages that may be useful [extras] name=CentOS-5 - Extras #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extrasbaseurl=http://ftp.sjtu.edu.cn/centos/5.4/extras/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5#additional packages that extend functionality of existing packages [centosplus] name=CentOS-5 - Plus #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus baseurl=http://ftp.sjtu.edu.cn/centos/5.4/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5#contrib - packages by Centos Users [contrib] name=CentOS-5 - Contrib #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib baseurl=http://ftp.sjtu.edu.cn/centos/5.4/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 

第二步:64位: rpm --import http://ftp.sjtu.edu.cn/centos/5.4/os/x86_64/RPM-GPG-KEY-CentOS-5
32位: rpm --import http://ftp.sjtu.edu.cn/centos/5.4/os/i386/RPM-GPG-KEY-CentOS-5
第三步:yum update
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表