复制命令即可

Centos7配置如下:

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

yum clean all

yum makecache

测试:

 yum install -y net-tools