一、说明
1、添加源,url错误,删除重新添加
2、CentOS7
3、其他博客
https://www.linuxidc.com/Linux/2019-08/160310.htm
二、更新国内源
1)下载国内源(阿里)
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
2)安装
yum clean all && yum makecache && yum update
~~三、yum源重置
1、进入配置目录
cd /etc/yum.repos.d
2、查看源
ll
3、删除源
rm -f ${文件名}.repo
4、添加-清华源(docker)
sudo dnf config-manager --add-repo https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/docker-ce.repo