原文: 在 FC6 上设置 yum 的国内镜像更新
刚装了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更新源了。
后记:在使用yum进行install时,经常会出现下面的错误
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 1ac70ce6
导致安装不能进行。解决方法如下:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
附:上述步骤的参考文献
1.3. 软件源的设置
南岭梅香-我的FC6安装配置日志
yum安装时下载完毕,但却出现warning!Help!!!!
本文介绍如何在FC6系统中设置yum使用国内镜像站点进行更新,包括禁用原有更新源、配置清华镜像源的具体步骤,并解决了在使用过程中遇到的签名验证问题。
127

被折叠的 条评论
为什么被折叠?



