已解决
centos更换yum源
来自网友在路上 195895提问 提问时间:2023-11-21 15:55:03阅读次数: 95
最佳答案 问答题库958位专家为你答疑解惑
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
查看全文
99%的人还看了
相似问题
猜你感兴趣
版权申明
本文"centos更换yum源":http://eshow365.cn/6-41359-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!