找到yumPATH文件,路径:/etc/yum.repos.d/
fedora.repo
fedora-updates.repo然后修改这2个文件。
#geditfedora.repo
弹出文本编辑器后,把所有内容删除。替换成下列内容。根据你自己的网速也可以精简解个最快的源。
内容如下:
class=codetop>CODE:class=codemain>[fedora] name=Fedora$releasever-$basearch failovermethod=priority #baseurl= baseurl=
ftp://ftp.iij.ad.jp/pub/linux/fedora/releases/$releasever/Everything/$basearch/os/
http://sunsite.mff.cuni.cz/MIRRORS/fedora.redhat.com/linux/releases/$releasever/Everything/$basearch/os/
ftp://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/releases/$releasever/Everything/$basearch/os/
ftp://ftp.cse.buffalo.edu/pub/Linux/fedora/linux/releases/$releasever/Everything/$basearch/os/
ftp://ftp.iij.ad.jp/pub/linux/fedora/releases/$releasever/Everything/$basearch/os/
#mirrorlist= enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedorafile:///etc/pki/rpm-gpg/RPM-GPG-KEY |
然后修改fedora-updates.repo这个文件
#geditfedora-updates.repo
弹出编辑器后,将内容替换为如下内容:
class=codetop>CODE:class=codemain>[updates] name=Fedora$releasever-$basearch-Updates failovermethod=priority baseurl=
ftp://ftp.iij.ad.jp/pub/linux/fedora/updates/$releasever/$basearch/
http://sunsite.mff.cuni.cz/MIRRORS/fedora.redhat.com/linux/updates/$releasever/$basearch/
ftp://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/updates/$releasever/$basearch/
ftp://ftp.cse.buffalo.edu/pub/Linux/fedora/linux/updates/$releasever/$basearch/
ftp://ftp.iij.ad.jp/pub/linux/fedora/updates/$releasever/$basearch/
#mirrorlist= enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora |
此时YUM就基本上OK了。最好添加一个LIVNA的源。更新速度一直不错。
可以手动创建livna.repo也可以直接下载RPM包进行安装。
在此我使用了RPM包,地址:rpm.livna.org
下载本文示例代码
阅读(361) | 评论(0) | 转发(0) |