CentOS7.0更新yum为阿里源,解决软件无法安装更新的问题
in 心情分享读书学习 with 0 comment

CentOS7.0更新yum为阿里源,解决软件无法安装更新的问题

in 心情分享读书学习 with 0 comment

修改CentOS7.0时想更快的换镜像源,于是就直接用命令行解决问题,解决方案如下:


sudo cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

sudo wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo 

yum clean all  

yum makecache


Responses
');