关于教育网配置FC6 yum 源的问题

由于在教育网下不能上国外网站,所以我的fc6 无法无法更新,最近发现原来清华大学和上海交大有镜像,经过将近一天的配置,终于可以升级了。
我的配置如下:
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

这是fc6 的更新镜像
我还发现这里还有livna 和freshrpms 的镜像我的livna 设置如下:
新建yum.repos.d
#mkdir/etc/yum.repos.d
#cd /etc/yum.repos.d
#gedit livna.repo
添加如下内容:
[livna]
name=Livna for Fedora Core $releasever - $basearch - Base
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/$releasever/$basearch/

failovermethod=priority
#mirrorlist=http://rpm.livna.org/mirrorlist-6
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna



[livna-source]
name=Livna for Fedora Core $releasever - $basearch - Source
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/$releasever/SRPMS/

failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
gpgcheck=1

保存

#gedit livna-devel.repo


添加内容如下:
[livna-development]
name=Livna for Fedora Core $releasever - $basearch - Development Tree
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/development/$basearch/
failovermethod=priority
#mirrorlist=http://rpm.livna.org/mirrorlist-development
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna

[livna-development-debuginfo]
name=Livna for Fedora Core $releasever - $basearch - Development Tree - Debug
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/development/$basearch/debug/

failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
gpgcheck=1

[livna-development-source]
name=Livna for Fedora Core $releasever - $basearch - Development Tree - Source
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/development/SRPMS/

failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
gpgcheck=1

保存

#gedit livna-testing.repo

内容如下:
[livna-testing]
name=Livna for Fedora Core $releasever - $basearch - Testing
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/testing/$releasever/$basearch/

failovermethod=priority
#mirrorlist=http://rpm.livna.org/mirrorlist-testing-6
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna

[livna-testing-debug]
name=Livna for Fedora Core $releasever - $basearch - Testing - Debug
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/testing/$releasever/$basearch/debug/

failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
gpgcheck=1

[livna-testing-source]
name=Livna for Fedora Core $releasever - $basearch - Testing - Source
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/testing/$releasever/SRPMS/

failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
gpgcheck=1

保存。

这样可以利用livna 安装软件了,遗憾的是freshrpms 的镜像我用尽了办法也没配置成功,哪们朋友成功了可以分亨一下。 Linux联盟收集整理

你可能感兴趣的:(linux,redhat,教育,OS)