我一般不会更改yum源,使用axelget速度依然很快的,不过我发现axel多线程下载很容易死掉
其实电信和网通访问美国比日本快,而fedora比较喜欢选择日本的源,虽然地理位置确实很近,但网速却不行不知道是不是BT日本AV的人多了,导致带宽被占用了,呵呵!
通过下面简单的修改就可以使用美国yum源,速度很快!关键是axel不会死掉,节约了很多时间!
修改/etc/yum.repos.d/fedora.repo文件,找到下面一行
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
在它后面加上 &country=us,使它成为
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch&country=us
同样的方法修改/etc/yum.repos.d/fedora-updates.repo文件。改为
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch&country=us
必要的话把/var/cache/yum/fedora/mirrorlist.txt和/var/cache/yum/fedora-updates/mirrorlist.txt删掉,然后再进行yum时速度就会快不少了。
idea来自这里:http://www.linuxsir.org/bbs/thread316669.html
其实电信和网通访问美国比日本快,而fedora比较喜欢选择日本的源,虽然地理位置确实很近,但网速却不行不知道是不是BT日本AV的人多了,导致带宽被占用了,呵呵!
通过下面简单的修改就可以使用美国yum源,速度很快!关键是axel不会死掉,节约了很多时间!
修改/etc/yum.repos.d/fedora.repo文件,找到下面一行
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
在它后面加上 &country=us,使它成为
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch&country=us
同样的方法修改/etc/yum.repos.d/fedora-updates.repo文件。改为
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch&country=us
必要的话把/var/cache/yum/fedora/mirrorlist.txt和/var/cache/yum/fedora-updates/mirrorlist.txt删掉,然后再进行yum时速度就会快不少了。
idea来自这里:http://www.linuxsir.org/bbs/thread316669.html