源贴地址:http://pengjiayou.com/blog/sjtu-repository-for-fedora-10
即使安装了 yum-fastmirror 插件,Fedora 10 的更新速度还是不理想吗?那么请添加国内上海交通大学 Fedora 软件仓库吧!尤其适合教育网用户。
用 gedit 新建一个文件,并命名为 “sjtu.repo” (不包括引号),文件内容如下:
[Fedora-ftp.sjtu.edu.cn]
name=Fedora 10 - i386
baseurl=http://ftp.sjtu.edu.cn/fedora/linux/releases/10/Fedora/i386/os/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[Everything-ftp.sjtu.edu.cn]
name=Everything 10 - i386
baseurl=http://ftp.sjtu.edu.cn/fedora/linux/releases/10/Everything/i386/os/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[updates-ftp.sjtu.edu.cn]
name=Fedora updates
baseurl=http://ftp.sjtu.edu.cn/fedora/linux/updates/10/i386/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
搞定后,cd 到你保存 sjtu.repo 的目录下,并将其 cp 到 /etc/yum.repos.d/ 目录下并重建 yum 缓存即可。
sudo cp sjtu.repo /etc/yum.repos.d
yum makecache
Enjoy!