Go Fedora Add Domestic source (Sohu, 163)

Source: Internet
Author: User
Tags gpg metalink

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)

Related Article

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.