Fedora update source method

Source: Internet
Author: User
Tags metalink

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.