Modify/etc/yum.repos.d/centos-base.repo
# Centos-base.repo
#
# The Mirror system uses the connecting IP address of the client and the
# Update status of each mirror to pick mirrors, are updated to and
# Geographically close to the client. You are should use this for CentOS updates
# Unless you are manually picking the other mirrors.
#
# If The mirrorlist= does not work for your, as a fall back you can try the
# remarked out Baseurl= line instead.
#
#
[Base]
name=centos-$releasever-base-163.com
baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/
#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=os
Gpgcheck=1
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6
#released Updates
[Updates]
name=centos-$releasever-updates-163.com
baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/
#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=updates
Gpgcheck=1
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6
#additional packages that useful
[Extras]
name=centos-$releasever-extras-163.com
baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/
#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=extras
Gpgcheck=1
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6
#additional packages that extend functionality of existing packages
[Centosplus]
name=centos-$releasever-plus-163.com
baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/
#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=centosplus
Gpgcheck=1
Enabled=0
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6
#contrib-packages by Centos Users
[Contrib]
name=centos-$releasever-contrib-163.com
baseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/
#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=contrib
Gpgcheck=1
Enabled=0
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6
File free Download Address: http://download.csdn.net/detail/chenyiming_1990/7032825
Centos/etc/yum.repo.d/. The configuration and compilation of repo source
# Centos-base.repo
#
# The Mirror system uses the connecting IP address of the client and the
# Update status of each mirror to pick mirrors, are updated to and
# Geographically close to the client. You are should use this for CentOS updates
# Unless you are manually picking the other mirrors.
#
# If The mirrorlist= does not work for your, as a fall back you can try the
# remarked out Baseurl= line instead.
#
#
Name of [base]/Unique ID
name=centos-$releasever-base//The name of the. Repo file used
mirrorlist=http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=os
#mirrorlist is the Yum program to capture the mapping platform, BaseURL is designated a fixed container URL
#baseurl =http://mirror.centos.org/centos/$releasever/os/$basearch/
#其中url支持的协议有 http://ftp://file://three species. BaseURL can be followed by multiple URLs, you can change yourself to a faster mirror station, but BaseURL can only have a
Gpgcheck=1 #gpg签名检查
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5
#gpg密钥的位置, you should specify that the local key file can only be validated against the key on the server.
#released Updates
#该段指向的路径是软件升级时需要的软件包
[Updates]
name=centos-$releasever-updates
mirrorlist=http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=updates
This path corresponds to the update folder on the server, that is, automatically to the Server updates folder to find the package
#baseurl =http://mirror.centos.org/centos/$releasever/updates/$basearch/
Gpgcheck=1
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5
#packages used/produced in the builds but not released
#该段指向的路径是已经使用了或者已经制作出来的软件, but did not issue
[Addons]
name=centos-$releasever-addons
mirrorlist=http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=addons
#baseurl =http://mirror.centos.org/centos/$releasever/addons/$basearch/
Gpgcheck=1
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5
#additional packages that useful
#该段指向的路径是可能有用的其他的软件
[Extras]
name=centos-$releasever-extras
mirrorlist=http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=extras
#baseurl =http://mirror.centos.org/centos/$releasever/extras/$basearch/
Gpgcheck=1
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5
#additional packages that extend functionality of existing packages
#该段指向的路径是已经存在的软件的扩展软件, Plug-ins, etc.
[Centosplus]
name=centos-$releasever-plus
mirrorlist=http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=centosplus
#baseurl =http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
Gpgcheck=1
Enabled=0 #enabled =0 indicates that the source is deactivated if enabled does not write the representation enabled=1
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5
#contrib-packages by Centos Users
#该段指向的路径是系统使用者所贡献的软件
[Contrib]
name=centos-$releasever-contrib
mirrorlist=http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=contrib
#baseurl =http://mirror.centos.org/centos/$releasever/contrib/$basearch/
Gpgcheck=1
Enabled=0
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5