1)先删除/etc/yum.repos.d/下面的所有文件
2)添加上海交大源,将以下内容保存为 /etc/yum.repos.d/sjtu.repo
[Fedora-ftp.sjtu.edu.cn]
name=Fedora 16 - i386
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
[Everything-ftp.sjtu.edu.cn]
name=Everything 16 - i386
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
[updates-ftp.sjtu.edu.cn]
name=Fedora updates
baseurl=
enabled=1
gpgcheck=0
3)在终端里依次运行yum clean all 和yum makecache即可注:yum安装后若需要保存软件包,则需要设置/etc/yum.conf中keepcache=1,默认keepcache=0,即安装后不保留rpm包。
阅读(5010) | 评论(0) | 转发(0) |