Centos6.5 replacing a 163 source Epel source

Source: Internet
Author: User
Tags gpg

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

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.