下面,以root权限创建、编辑 /etc/yum.repos.d/sjtu.repo
[updates] name=Fedora updates baseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/updates/$releasever/$basearch/ enabled=1 gpgcheck=0 [fedora] name=Fedora $releasever – $basearch baseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/releases/$releasever/Everything/$basearch/os/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
如果需要使用freshrpms,还可以加上:
[freshrpms] name=Fedora Core $releasever – $basearch – Freshrpms baseurl=ftp://ftp.sjtu.edu.cn/freshrpms/ayo/fedora/linux/$releasever/$basearch/freshrpms/ enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-freshrpms gpgcheck=0
保存文件。
更新yum的缓存。
# yum makecache
Fedora 8正式版教育网源
转载请注明出处:服务器评测 » Fedora 8正式版教育网源