Centos7 modify yum source to Ali Source

Source: Internet
Author: User
Tags epel repo aliyun

Centos7 modify yum source to Ali Source

Centos7: Modify yum source to Ali source. The speed is faster under a certain network. First, go to the yum source setting folder.

1. Install the base reop Source
   cd /etc/yum.repos.d

Back up the old configuration file

   sudo mv CentOS-Base.repo CentOS-Base.repo.bak

Download Alibaba source files

   sudo wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
2 install the epel repo Source:

Epel (RHEL 7)

    wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

Epel (RHEL 6)

    wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo

Epel (RHEL 5)

    wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-5.repo
3. Clear Cache
yum clean all
4. regenerate Cache
yum makecache

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.