Open/etc/yum.repos.d/centos6-base-163.repo
Replace the BaseURL address below with the latest online
# Centos-base.repo
#
# The Mirror system uses the connecting IP address of the client and the
# Update status of each mirror to pick mirrors that is updated to and
# Geographically close to the client. You should the use of this for CentOS updates
# Unless you is manually picking other mirrors.
#
# If The mirrorlist= does not work for you, as a fall back to you can try the
# remarked out Baseurl= line instead.
#
#
[Base]
Name=centos-6-base-163.com
baseurl=http://mirrors.163.com/centos/6/os/x86_64/
#mirrorlist =http://mirrorlist.centos.org/?release=6&arch= $basearch &repo=os
Gpgcheck=1
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6
#released Updates
[Updates]
Name=centos-6-updates-163.com
baseurl=http://mirrors.163.com/centos/6/updates/x86_64/
#mirrorlist =http://mirrorlist.centos.org/?release=6&arch= $basearch &repo=updates
Gpgcheck=1
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6
#additional packages that could be useful
[Extras]
Name=centos-6-extras-163.com
baseurl=http://mirrors.163.com/centos/6/extras/x86_64/
#mirrorlist =http://mirrorlist.centos.org/?release=6&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-6-plus-163.com
baseurl=http://mirrors.163.com/centos/6/centosplus/x86_64/
#mirrorlist =http://mirrorlist.centos.org/?release=6&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-6-contrib-163.com
baseurl=http://mirrors.163.com/centos/6/contrib/x86_64/
#mirrorlist =http://mirrorlist.centos.org/?release=6&arch= $basearch &repo=contrib
Gpgcheck=1
Enabled=0
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6
Troubleshooting Yum Installation cannot retrieve repository metadata (Repomd.xml) for repository