本文共 603 字,大约阅读时间需要 2 分钟。
因为自己用刚VM安装的centos 7,使用yum安装程序的时候,发现一个程序都找不到,
我猜测可能是国外的yum源被限制了,然后换成国内的阿里yum源,就可以安装了。于是有了这个教程。mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
CentOS 5wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repoCentOS 6wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repoCentOS 7wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
一句句执行
yum clean all yum makecacheyum update
然后就可以用来安装程序了。
转载地址:http://soaql.baihongyu.com/