Linux operation: Set the yum domestic source of Fedora

Source: Internet
Author: User
Tags iweb
Foreign Yum sources are very slow, and there are good sources in China, so it is best to set up the source in China, the best in China are beiyou, Tsinghua, and Shanghai Jiaotong University.
The procedure is as follows:
First, install the Yum-fastestmirror plug-in and select the fastest source automatically.
# Yum install Yum-fastestmirror-y
Second:
Under/etc/yum. Repos. D, the content of the new file sjtuedu. repo is as follows:
[Sjtuedu]
Name = fedora $ releasever-$ basearch-Updates
Baseurl = Signature/
Ftp://ftp.bupt.edu.cn/pub/#/fedora/linux/updates/?releasever/?basearch/
Ftp://ftp.bupt.edu.cn/pub/#/fedora/linux/updates/?releasever/srpms/
# Items list = http://mirrors.fedoraproject.org/mirrorlist? Repo = fedora-$ releasever & arch = $ basearch & Country = us
Ftp://ftp3.tsinghua.edu.cn/#/livna/fedora/updates/?releasever/#basearch/
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-GPG-key-fedora file: // etc/pki/rpm-GPG/RPM-GPG-KEY file: // etc/pki/rpm-GPG/RPM-LIVNA-GPG-KEY

This RPM-LIVNA-GPG-KEY file is placed under/etc/pki/rpm-GPG/, the content can be
Ftp://ftp3.tsinghua.edu.cn/#/livnacan be downloaded.
While the RPM-GPG-KEY file in/etc/pki/rpm-GPG/, content in ftp://ftp.sjtu.edu.cn/freshrpmscan be found, but will cover the original, there is no relationship.
However, beiyou does not seem to need a key.
Now everything is OK.

Run the following command on the terminal,
Yum install Fuse
It was very fast.

Sometimes it is prompted that there is a problem with the newly created file. You need to use a URL such as HTTP and FTP to carefully check your own file. Generally, there is no problem.

Modify the update source of Fedora:
Then modify the two files.
# Gedit fedora. Repo
After a text editor is displayed, delete all content. Replace it with the following content. You can also streamline the solution to the fastest source based on your own network speed.

The content is as follows:
[Fedora]
Name = fedora $ releasever-$ basearch
Failovermethod = Priority
# Baseurl = http://download.fedora.red Hat . Com/pub/Fedora/Linux/releases/$ releasever/everything/$ basearch/OS/
Baseurl =
Bytes/
Http://mirrors.usc.edu/pub/linux... ora/Linux/releases/$ releasever/everything/$ basearch/OS/
Bytes/
Bytes/
Bytes/
Bytes/
Bytes/
Bytes/
Bytes/
Http://sunsite.mff.cuni.cz/MIRRO .. com/Linux/releases/$ releasever/everything/$ basearch/OS/
Bytes/
Bytes/
Http://mirror.fraunhofer.de/down... ora/Linux/releases/$ releasever/everything/$ basearch/OS/
Bytes/
Http://ftp.funet.fi/pub/mirrors/... ora/Linux/releases/$ releasever/everything/$ basearch/OS/
Ftp://ftp.free.fr/mirrors/fedora... ora/Linux/releases/$ releasever/everything/$ basearch/OS/
Bytes/
Http://fedora.developer.iweb.ca/releases/?releasever/everything/?basearch/ OS/
Bytes/
Bytes/
Http://mirrors.tummy.com/pub/fed... ora/Linux/releases/$ releasever/everything/$ basearch/OS/
Http://mirrors.kernel.org/fedora/releases/?releasever/everything/?basearch/ OS/
Bytes/
Bytes/
Bytes/
Bytes/
Bytes/
Bytes/
Bytes/


# Items list = http://mirrors.fedoraproject.org/mirrorlist? Repo = fedora-$ releasever & arch = $ basearch
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-GPG-key-fedora file: // etc/pki/rpm-GPG/RPM-GPG-KEY

Then modify the fedora-updates.repo File

# Gedit fedora-updates.repo

After the editor pops up, replace the content with the following:

[Updates]
Name = fedora $ releasever-$ basearch-Updates
Failovermethod = Priority
Baseurl =
Http://download.fedora.redhat.com/pub/fedora/linux/updates/?releasever/#basearch/
Http://mirrors.usc.edu/pub/linux... Dora/Linux/updates/$ releasever/$ basearch/
Http://mirrors.cat.pdx.edu/fedora/linux/updates/?releasever/?basearch/
Http://ftp.iij.ad.jp/pub/linux/fedora/updates/?releasever/?basearch/
Ftp://ftp.iij.ad.jp/pub/linux/fedora/updates/?releasever/?basearch/
Http://developer.aarnet.edu.au/pub/fedora/linux/updates/?releasever/?basearch/
Http://developer.internode.on.net/pub/fedora/linux/updates/?releasever/?basearch/
Http://gulus.usherbrooke.ca/pub/distro/fedora/linux/updates/?releasever/#basearch/
Http://developer.karneval.cz/pub/linux/fedora/linux/updates/?releasever/?basearch/
Http://sunsite.mff.cuni.cz/MIRRO... COM/Linux/updates/$ releasever/$ basearch/
Http://ftp-stud.hs-esslingen.de/pub/fedora/linux/updates/?releasever/?basearch/
Http://fedora.tu-chemnitz.de/pub/linux/fedora/linux/updates/?releasever/?basearch/
Http://mirror.fraunhofer.de/down... Dora/Linux/updates/$ releasever/$ basearch/
Http://ftp.uni-bayreuth.de/linux/fedora/linux/updates/?releasever/?basearch/
Http://ftp.funet.fi/pub/mirrors/... Dora/Linux/updates/$ releasever/$ basearch/
Bytes/
Http://limestone.uoregon.edu/ftp/fedora/linux/updates/?releasever/#basearch/
Http://fedora.developer.iweb.ca/updates/?releasever/?basearch/
Ftp://ftp.cse.buffalo.edu/pub/linux/fedora/linux/updates/?releasever/?basearch/
Http://developer.cc.vt.edu/pub/fedora/linux/updates/?releasever/?basearch/
Http://mirrors.tummy.com/pub/fed... Dora/Linux/updates/$ releasever/$ basearch/
Http://mirrors.kernel.org/fedora/updates/?releasever/?basearch/
Http://www.gtlib.gatech.edu/pub/fedora.redhat/linux/updates/?releasever/#basearch/
Http://ftp.linux.ncsu.edu/pub/fedora/linux/updates/?releasever/?basearch/
Http://ftp.iij.ad.jp/pub/linux/fedora/updates/?releasever/?basearch/
Ftp://ftp.iij.ad.jp/pub/linux/fedora/updates/?releasever/?basearch/
Bytes/
Http://ftp.rhnet.is/pub/fedora/linux/updates/?releasever/?basearch/
Http://developer.pacific.net.au/linux/fedora/linux/updates/?releasever/?basearch/

# Items list = http://mirrors.fedoraproject.org/mirrorlist? Repo = updates-released-F $ releasever & arch = $ basearch
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-GPG-key-Fedora

Now yum is basically OK. It is best to add a livna source. The update speed has always been good.
You can manually create livna. Repo or directly download the RPM package for installation.
Here I use the RPM package. The reason is convenience.
Logon address:
Rpm.livna.org
Select fc8 directly.
This is the file that will be automatically downloaded to the directory where your User File A is downloaded. You can delete it if you do not need it.

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.