CentOS 7 无法yum安装解决方法

1)下载repo文件

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

2)备份并替换系统的repo文件

cp Centos-7.repo /etc/yum.repos.d/
cd /etc/yum.repos.d/

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

  mv Centos-7.repo CentOS-Base.repo

 
 

3)执行yum源更新命令

yum clean all

yum makecache

yum update

配置完毕。

猜你喜欢

转载自www.cnblogs.com/sos-blue/p/10411489.html
今日推荐