网易镜像源:http://mirrors.163.com
搜狐镜像源:http://mirrors.sohu.com

添加方法:
1、所有操作都必须有系统权限
2、进入/etc/yum.repos.d,会发现有很多个文件,
3、编辑fedora.repo
将文件中[fedora]改成如下所示:
[fedora]
name=Fedora releasever basearch
failovermethod=priority
baseurl=http://mirrors.163.com/fedora/releases/ releasever/Everything/ basearch/os/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-releasever&arch=basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora- basearch4fedoraupdates.repo[updates][updates]name=Fedora releasever - $basearch - Updates
failovermethod=priority
baseurl=http://mirrors.163.com/fedora/updates/ releasever/ basearch/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-freleasever&arch=basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
5、如果想试一下搜狐的速度,只需要将其中的163改成sohu就行了,
6、至此,再次运行yum更新文件的时候速度就很快了.

Logo

更多推荐