如何在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* 附:上述步骤的参考文献 http://cocooker.gro.clinux.org/system-source.html 1.3.软件源的设置 http://www.neupioneer.com/city/blog/more.asp?name=codered&id=33152 南岭梅香-我的FC6安装配置日志 http://www.linuxsir.org/bbs/showthread.php?t=209957 yum安装时下载完毕,但却出现warning!Help!!!!