1.建立sjtu.repo
# cd /etc/yum.repos.d
# vim sjtu.repo
输入以下内容
[]
name=Fedora 11 - i386
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-
gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[]
name=Everything 11 - i386
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[]
name=Fedora updates
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
2. 更新源缓存
# yum makecache
使用 yum update 即可进行系统更新
阅读(531) | 评论(0) | 转发(0) |