Change CentOS 6.3 Yum Source to domestic 163 source

Source: Internet
Author: User

centos5.x: Http://mirrors.163.com/.help/CentOS5-Base-163.repo

centos6.x: Http://mirrors.163.com/.help/CentOS6-Base-163.repo

CentOS 163 Yum Source using:

1, first close fastestmirror

Vim/etc/yum/pluginconf.d/fastestmirror.conf

Set enable=0

2, first backup /etc/yum.repos.d/centos-base.repo

CD/ETC/YUM.REPOS.D
Mv/etc/yum.repos.d/centos-base.repo/etc/yum.repos.d/centos-base.repo.old

3, enter http://mirrors.163.com/.help/centos.html download Centos6-base-163.repo, put into /etc/yum.repos.d/ .

wget-c Http://mirrors.163.com/.help/CentOS6-Base-163.repo

4. Generate Cache

Yum Makecache

Other command references:

1.Yum Search softwarename find Software

2.Yum list softwarename list installed software

3.Yum install softwarename installation software

4.Yun Remove softwarename uninstall software

Ali Yum Source:

cd/etc/yum.repos.d/
MV MV Centos-base.repo Centos-base.repo.back
Wget-o Centos-base.repo Http://mirrors.aliyuncs.com/repo/Centos-6.repo
Yum Makecache

Change CentOS 6.3 Yum Source to domestic 163 source

Related Article

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.