1. 安装wget
yum install -y wget
2. 备份配置文件
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
3. 下载华为yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://repo.huaweicloud.com/repository/conf/CentOS-7-reg.repo
4. 清理缓存
yum clean all
5. 重新生成缓存
yum makecache
6.补充

被折叠的 条评论
为什么被折叠?



