The first scenario
At home 163 and Sohu provide a good source, now we add them both to our source library.
1. Add the source of Sohu
Go to site http://mirrors.sohu.com/, find the Fedora directory on the left, click Help on the right side of the line, and
Download Fedora-sohu.repo and Fedora-updates-sohu.repo, put/etc/yum.repos.d/
Run the Yum Makecache build cache
2. Add a 163 source
Http://mirrors.163.com/.help/fedora.html
Go to the website http://mirrors.163.com/, find the Fedora directory on the left, click on the use Help on the right of the row, then
Download Fedora-163.repo and Fedora-updates-163.repo, put/etc/yum.repos.d/
Run the Yum Makecache build cache
Now you can run the command LS/ETC/YUM.REPOS.D see if there are two more sources in the directory,
Second scenario
# Vi/etc/yum.repos.d/fedora-cn.repo
=============================================================================
[Fedora-mirrors.sohu.com]
Name=fedora $releasever-$basearch-sohu.com
Failovermethod=priority
baseurl=http://mirrors.sohu.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-$basearch
[Fedora-debuginfo-mirrors.sohu.com]
Name=fedora $releasever-$basearch-debug-sohu.com
Failovermethod=priority
baseurl=http://mirrors.sohu.com/fedora/releases/$releasever/everything/$basearch/debug/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever &arch= $basearch
Enabled=0
metadata_expire=7d
Gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-fedora-$basearch
[Fedora-source-mirrors.sohu.com]
Name=fedora $releasever-source-sohu.com
Failovermethod=priority
baseurl=http://mirrors.sohu.com/fedora/releases/$releasever/everything/source/srpms/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever &arch= $basearch
Enabled=0
metadata_expire=7d
Gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-fedora-$basearch
[Fedora-mirrors.163.com]
Name=fedora $releasever-$basearch -163.com
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-$basearch
[Fedora-debuginfo-mirrors.163.com]
Name=fedora $releasever-$basearch-debug-163.com
Failovermethod=priority
baseurl=http://mirrors.163.com/fedora/releases/$releasever/everything/$basearch/debug/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever &arch= $basearch
Enabled=0
metadata_expire=7d
Gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-fedora-$basearch
[Fedora-source-mirrors.163.com]
Name=fedora $releasever-source-163.com
Failovermethod=priority
baseurl=http://mirrors.163.com/fedora/releases/$releasever/everything/source/srpms/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever &arch= $basearch
Enabled=0
metadata_expire=7d
Gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-fedora-$basearch
=============================================================================
# Vi/etc/yum.repos.d/fedora-update-cn.repo
=============================================================================
[Updates-mirrors.sohu.com]
Name=fedora $releasever-$basearch-updates-sohu.com
Failovermethod=priority
baseurl=http://mirrors.sohu.com/fedora/updates/$releasever/$basearch/
Mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch= $basearch
Enabled=1
Gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-fedora-$basearch
Go Fedora Add Domestic source (Sohu, 163)