文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>在FC6上设置yum的国内镜像更新源

在FC6上设置yum的国内镜像更新源

时间:2006-12-22  来源:hebehe

刚装了FC6,由于在教育网,无法使用yum默认的国外更新源,因此需要将其设置为国内镜像站点。在网上找了一圈,发现清华的 ftp://ftp3.tsinghua.edu.cn这个更新源不错。参考网上的一些方法,设置yum更新源步骤如下:

1. 将/etc/yum.repos.d/下的已有更新源(repo文件)的enable改为0。为了方便起见,可以直接 mv /etc/yum.repos.d /etc/yum.repos.d.bak重命名,这样就让系统找不到原有的repo文件了。

2. 修改/etc/yum.conf文件,添加如下内容:
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

[extras]
name=Fedora Extras $releasever - $basearch
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/extras/6/i386
enabled=1

[updates]
name=Fedora Core $releasever - $basearch - Updates
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/core/updates/6/i386
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

[core]
name=Fedora Core $releasever - $basearch
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os
enable=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

3. 经过上述步骤后,就可以使用速度较快的国内镜像站点作为yum更新源了。

附:上述步骤的参考文献
http://cocooker.gro.clinux.org/system-source.html  1.3. 软件源的设置
http://www.neupioneer.com/city/blog/more.asp?name=codered&id=33152 南岭梅香-我的FC6安装配置日志
相关阅读 更多 +
排行榜 更多 +
中顺捕鱼大冒险微信版官方免费下载

中顺捕鱼大冒险微信版官方免费下载

休闲益智 下载
栖云异梦官方安卓版下载

栖云异梦官方安卓版下载

冒险解谜 下载
像素火影次世代2025最新版下载

像素火影次世代2025最新版下载

飞行射击 下载