歡迎您光臨本站 註冊首頁

更改centos 5 yum源

←手機掃碼閱讀     火星人 @ 2014-03-09 , reply:0
根據需要選擇設置源:
一、如何設置CentOS 5的yum源為上海交通大學網站
二、設置yum源為國內的伺服器
三、CentOS 下使用本地鏡像源
一.如何設置CentOS 5的yum源為上海交通大學網站
1.修改/etc/yum.repos.d/CentOS-Base.repo為:
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.0/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


[火星人 ] 更改centos 5 yum源已經有979次圍觀

http://coctec.com/docs/linux/show-post-54683.html