CentOS7 ali cloud yum source use details

  • 2020-05-27 07:45:18
  • OfStack

CentOS 7 USES the yum source of ariyun

1. Back up the original yum source

sudo cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

2. Set aliyun's yum source

sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

3. Add the EPEL source

EPEL (http: / / fedoraproject org/wiki/EPEL) is by Fedora community building, for RHEL and derivative distributions such as CentOS, Scientific Linux, such as the provision of high quality package project. After installing EPEL, you can install more software through yum install package-name, just as you did on Fedora 1.

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

4. Clean the cache and generate a new cache

sudo yum clean all
sudo yum makecache

Thank you for reading, I hope to help you, thank you for your support of this site!


Related articles: