Centos6.5 change network source to Sohu source

Source: Internet
Author: User
Howtochangeyourepositorytoenjoythefastinstallspeed? Copythefollowingcodes: # CentOS-Base.repo # thisfileusesanew?listsystemdevelopedbylancedavis
How to change you repository to enjoy the fast install speed?copy the following codes:

# CentOS-Base.repo
#
# This file uses a new release list system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and
# Update status of each mirror to pick mirrors that are updated to and
# Geographically close to the client. You shoshould use this for CentOS updates
# Unless you are manually picking other mirrors.
#
# If the specified list = does not work for you, as a fall back you can try
# Remarked out baseurl = line instead.
#
#

[Base]
Name = CentOS-$ releasever-Base
Baseurl = http://mirrors.sohu.com/centos/6.5/ OS /?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6

# Released updates
[Updates]
Name = CentOS-$ releasever-Updates
Baseurl = http://mirrors.sohu.com/centos/6.5/updates/?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6

# Packages used/produced in the build but not released
# [Addons]
# Name = CentOS-$ releasever-Addons
# Baseurl = http://mirrors.sohu.com/centos/?releasever/addons/?basearch/
# Gpgcheck = 1
# Gpgkey = http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6
# Additional packages that may be useful
[Extras]
Name = CentOS-$ releasever-Extras
Baseurl = http://mirrors.sohu.com/centos/6.5/extras/?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6
# Additional packages that extend functionality of existing packages
[Centosplus]
Name = CentOS-$ releasever-Plus
Baseurl = http://mirrors.sohu.com/centos/6.5/centosplus/?basearch/
Gpgcheck = 1
Enabled = 0
Gpgkey = http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6

saved as a file named CentOS-Base.repo under the directory: /etc/yum.repos.d(make sure that .repo files only include CentOS-Base.repo;CentOS.Debuginfo.repo;CentOS-Vault.repo and CentOS-Media.repo)

CentOS-Base.repoIs the configuration file of the yum network source


CentOS-Media.repo is yumLocal source configuration file

And then download and import the key using the following lines

Wget mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6

Rpm -- import RPM-GPG-KEY-CentOS-6

Then enjoy the fast speed of yum!

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.