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!