CentOS 7 yum switch to Ali data source

How to quickly switch the yum source of CentOS 7 to the Alibaba Cloud data source.

1. Execute the command first.

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

insert image description here

2. Clear the yum cache

yum clean all

insert image description here

3. Execution

yum  makecache

insert image description here

Guess you like

Origin blog.csdn.net/liulihui1988/article/details/128687389