到root用户下执行:
cd /etc/yum.repos.d
- gedit sjtu.repo
- 在打开的空白窗口中加入
- [Fedora-ftp.sjtu.edu.cn]
- name = Fedora 11 - i386
- baseurl = http ://ftp.sjtu.edu.cn/fedora/linux/releases/11/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 11 - i386
- baseurl = http ://ftp.sjtu.edu.cn/fedora/linux/releases/11/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/11/i386/
- enabled = 1
- gpgcheck = 0
- gpgkey = file :///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
- (注意大小写,网上有几篇文章中的大小写错误,会导致404 Not Found. )
- 然后保存退出。
- 然后依次执行:
- yum makecache
- yum -y install yum-fastestmirror