Solution 1
In China 163 and Sohu provide good sources. Now we add them to our source database.
1. Add source of Sohu
Go to the website http://mirrors.sohu.com/, find the fedora directory on the left, click the help on the right of the row, and then
Download fedora-sohu.repo and fedora-updates-sohu.repo, put in/etc/yum. repos. d/
Run yum makecache to generate Cache
2. Add a 163 Source
Go to the website http://mirrors.163.com/, find the fedora directory on the left side, click the Help button on the right side of the page, and then
Download fedora-163.repo and fedora-updates-163.repo, put in/etc/yum. repos. d/
Run yum makecache to generate Cache
Solution 2
# 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/
Using list = 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 = Signature/
Using list = 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/
Using list = 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/
Using list = 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/
Using list = 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/
Using list = https://mirrors.fedoraproject.org/metalink? Repo = fedora-source-$ releasever & arch = $ basearch
Enabled = 0
Metadata_expire = 7d
Gpgcheck = 1
Gpgkey = file: // etc/pki/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/
Using list = https://mirrors.fedoraproject.org/metalink? Repo = updates-released-F $ releasever & arch = $ basearch
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-GPG-key-fedora-$ basearch