Presumably we've all met, installing a new CentOS system, using Yum to install the software, either can't find it, or it's slow to get mad.
Online in fact, a lot of methods, directly replace 163 source on OK, but basic all the articles are directly wget under 163 of the source, but do not know why, wget down the repo file a variety of not good, but also have to modify their own. Here, I put my modified source copy to here, we change the source when the direct copy and paste is OK.
[Base]name=centos-$releasever - base - 163.combaseurl=http://mirrors.163.com/centos/$ releasever/os/$basearch/#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch & repo=osgpgcheck=1gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6#released updates [ updates]name=centos-$releasever - updates - 163.combaseurl=http://mirrors.163.com/centos/$ releasever/updates/$basearch/#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=updatesgpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#additional packages that may be useful[extras]name=centos-$releasever - Extras - 163.combaseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/#mirrorlist =http:// mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=extrasgpgcheck=1gpgkey=http:// Mirror.centos.org/centos/rpm-gpg-key-centos-6#additionaL packages that extend functionality of existing packages[centosplus]name= centos-$releasever - plus - 163.combaseurl=http://mirrors.163.com/centos/$releasever/ centosplus/$basearch/#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo =centosplusgpgcheck=1enabled=0gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6#contrib - packages by centos users[contrib]name=centos-$releasever - contrib - 163. combaseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/#mirrorlist =http:// mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=contribgpgcheck=1enabled=0gpgkey=
I do not know how people like to use, I generally directly bring the system to the Centos-base.repo file empty, and then copy and paste the above content is OK.
This is the ok,163 source.
There is, of course, another way:
CD/ETC/YUM.REPOS.D/MV Centos-base.repo Centos-base.repo.oldwget http://mirrors.163.com/.help/ CENTOS6-BASE-163.REPOMV Centos6-base-163.repo Centos-base.repocdyum Clean Allyum makecache
By the way, the method of adding Epel source is also put here.
RPM-UVH http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
Finally, I emphasize that my operating system is centos6.5.
This article is from "Sharing is for learning" blog, please be sure to keep this source http://sqwei.blog.51cto.com/6544612/1699169
Centos6.5 Replace 163 source Epel source