Add fedora yum source in China ~ All ~ Speed up your download

Source: Internet
Author: User
Tags iweb
Add fedora yum source in China ~ All ~ Accelerate your download speed-general Linux technology-Linux technology and application information. For more information, see the following. 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/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 = Signature/
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/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/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.


1. Add a large source for submission
Even if the yum-fastmirror plug-in is installed, is the update speed of Fedora 10 still unsatisfactory? Add the Fedora software warehouse of Shanghai Jiao Tong University in China! It is especially suitable for CERNET users.
Create a file with gedit and name it "sjtu. repo" (excluding quotation marks). The file content is as follows:

Fedora-ftp.sjtu.edu.cn
Name = Fedora 10-i386
Base url = http://ftp.sjtu.edu.cn/fedora/linux/releases/10/Fedora/i386/ OS/
Enabled = 1
Gpgcheck = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file: // etc/pki/rpm-gpg/RPM-GPG-KEY
Everything-ftp.sjtu.edu.cn
Name = Everything 10-i386
Base url = http://ftp.sjtu.edu.cn/fedora/linux/releases/10/Everything/i386/ OS/
Enabled = 1
Gpgcheck = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file: // etc/pki/rpm-gpg/RPM-GPG-KEY
Updates-ftp.sjtu.edu.cn
Name = Fedora updates
Base url = http://ftp.sjtu.edu.cn/fedora/linux/updates/10/i386/
Enabled = 1
Gpgcheck = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file: // etc/pki/rpm-gpg/RPM-GPG-KEY

After this is done, cd is saved to the directory where you saved sjtu. repo, cp it to the/etc/yum. repos. d/directory, and re-create the yum cache.

# Cp sjtu. repo/etc/yum. repos. d

# Yum makecache

Enjoy!
Source update:
Package repository for rpm.livna.org:
Rpm-ivh http://livna-dl.reloumirrors.net/livna-release.noarch.rpm

Freshrpms.net package Repository:
Rpm? Ivh http://ftp.freshrpms.net/pub/fre... se-1.2-1.noarch.rpm
Update: fixed the case-sensitivity error in the above repo file. Felix of OwnLinux mentioned in today's article how to add the software warehouse of Shanghai Jiao Tong University, install yum-fastestmirror and axel Acceleration plug-in, which will greatly improve the download speed of Yum under Fedora 10, for more information, see.

Appendix axel usage:
Before you start, make sure that you have installed the following software to complete the installation.
Run the following command:
Yum-y install gcc make subversion
After yum makecache is executed
Run the following commands in sequence:
Yum-y install yum-fastestmirror
Svn co svn: // svn.debian.org/svn/axel/
Cd./axel/trunk
./Configure
Make & make install
Svn co http://cnfreesoft.googlecode.com/svn/trunk/axelget//etc/yum/axelget
Cd/etc/yum/pluginconf. d/
Ln-s/etc/yum/axelget. conf.
Cd/usr/lib/yum-plugins/
Ln-s/etc/yum/axelget. py.

If you use sudo to run yum, sh: axel: command not found appears in sudo.
Run the following command to solve the problem:

Cd/usr/bin
Ln-s/usr/local/bin/axel
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.