有多种选择,您可以对其进行硬编码 ( /etc/yum.repos.d/fedora.repo) 或使用fastmirror.
为了使用fastmirror您必须首先激活它:
在/etc/dnf/dnf.confaddfastestmirror=true
中然后使用此命令dnf config-manager --add-repo添加您要使用的镜像,您可以添加多个镜像,并且将使用最快的一个。
例子:
sudo dnf config-manager --add-repo http://ftp.byfly.by/pub/fedoraproject.org/linux/releases/23/Everything/x86_64/os/
Run Code Online (Sandbox Code Playgroud)
/linux/releases/23/Everything/x86_64/os/您必须使用fedora 23 版本和 fedora 23 更新的路径/linux/updates/23/x86_64/,否则将不起作用。
| 归档时间: |
|
| 查看次数: |
41587 次 |
| 最近记录: |