Yum is the rpm file manager of Red Hat. By default, it will select the nearest mirror address to download according to the resource. By default, there will be a cache of the mirror address locally. In order to stabilize the download speed, it is recommended to configure it as a domestic mirror address, 163, Alibaba Cloud.
1. Install wget, // yum install wget -y
2. Enter the yum configuration file directory (fixed). // cd /etc/yum.repo.d/
NOTE: There are 8 files here
3. The goal is to replace the CentOS-Base.repo file, make a backup first.
// mv CentOS-Base.repo CentOS-Base.repo.bak
4. Use the wget tool to select the version of centos
// wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
// wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
5. The local cache of yum, so you need to clear a wave of local cache first, and then replace it with Alibaba Cloud.
// yum clean all
6. Make Alibaba Cloud cache // yum makecache
The source of Alibaba Cloud is configured here, and the method of configuring Huawei 163 is the same