1.最近弄了一批centos系统,是6.8的,结果很多东西无法安装,因为yum源各大厂都下掉了,最后找到了搜狐,还没有下掉,最后建议大家还是最低用centos7吧!!!
清空 /etc/yum.repos.d下所有
vi CentOS-Base.repo
[base] name=Base baseurl=http://mirrors.sohu.com/centos/6/os/x86_64/ gpgcheck=1 gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6 [updates] name=Updates baseurl=http://mirrors.sohu.com/centos/6/updates/x86_64/ gpgcheck=1 gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6 [extras] name=Extras baseurl=http://mirrors.sohu.com/centos/6/extras/x86_64/ gpgcheck=1 gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6 [centosplus] name=centosplus baseurl=http://mirrors.sohu.com/centos/6/centosplus/x86_64/ gpgcheck=1 gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6 [contrib] name=Contrib baseurl=http://mirrors.sohu.com/centos/6/contrib/x86_64/ gpgcheck=1 gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6 [fasttrack] name=fasttrack baseurl=http://mirrors.sohu.com/centos/6/fasttrack/x86_64/ gpgcheck=1 gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-
生成缓存
yum clean all
yum makecache
后面正常yum install xxxx