首页 > 系统相关 >更改yum源

更改yum源

时间:2022-11-12 14:46:12浏览次数:69  
标签:更改 repos repo etc yum aliyun

1)cd /etc/yum.repos.d/
2)wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo //根据自己的版本去更改源
// centos 7 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
3)yum clean all
4)yum makecache

标签:更改,repos,repo,etc,yum,aliyun
From: https://www.cnblogs.com/jy00/p/16883715.html

相关文章