0
点赞
收藏
分享

微信扫一扫

Centos8 yum 更换最新阿里源(2022年)

Ad大成 2022-03-22 阅读 187
centos

1、进入配置文件夹
    命令:cd /etc/yum.repos.d/
2、删除旧的配置文件,输入“y”回车确认
    命令:rm *.repo
3、下载可以用的.repo文件
    命令:wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
    备注:如果你没有安装wget,可用命令:
    curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
4、生成缓存
    命令:yum makecache

举报

相关推荐

0 条评论