Fedora8添加修改yum源

Fedora8添加修改yum源的方法:
 
找到yum PATH 文件, 路径:/etc/yum.repos.d/
fedora.repo
fedora-updates.repo然后修改这2个文件。
# gedit fedora.repo

弹出文本编辑器后,把所有内容删除。替换成下列内容。根据你自己的网速也可以精简解个最快的源。

内容如下:

name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedora.RedHat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
baseurl=
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
ftp://ftp.iij.ad.jp/pub/linux/fedora/releases/$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
ftp://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/releases/$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
ftp://ftp.cse.buffalo.edu/pub/Linux/fedora/linux/releases/$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
ftp://ftp.iij.ad.jp/pub/linux/fedora/releases/$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/
$releasever/Everything/$basearch/os/

#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/5dc1eb48382f7e7e05a5800a1e478d27.html