centos更换阿里yum源

版权声明:此文章最终版权归HrainOne所有,欢迎转载,转载请声明最终版权 https://blog.csdn.net/gaoxin_gx/article/details/90274074

第一步:下载wget
yum -y install wget
第二步:备份一下默认的wget
mv /etc/yum.repos.d /etc/yum.repos.d.backup
第三步:设置一下新的yum的目录
mkdir /etc/yum.repos.d
第四步:下载阿里的配置
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
第五步:重新建立缓存
yum clean all
yum makecache
第六步:升级所有包
yum update -y时间较长等着吧。

猜你喜欢

转载自blog.csdn.net/gaoxin_gx/article/details/90274074
今日推荐