centos7 修改yum源为阿里源(留存备用)

来源:互联网 发布:通知栏网络图标不见了 编辑:程序博客网 时间:2024/05/22 10:43
cd /etc/yum.repos.d 


备份旧的配置文件:

mv CentOS-Base.repo CentOS-Base.repo.bak 


下载阿里源的文件:

 wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 


清理缓存 

yum clean all 


重新生成缓存 

yum makecache
原创粉丝点击