centos6.5换yum源

时间:2022-10-20 21:52:09

centos换yum源要借助wget,要先安装wget

输入yum -y install wget命令以安装wget

若安装wget失败或卡死,

ctrl+z,ps -ef | grep yum,之后有2行显示,kill -9 第一行第二列

这样可终止安装

关防火墙,再安装wget,若还是安装失败,rpm -qa | grep "wget"以检查是否已安装wget,发现已安装wget

链接:

https://blog.csdn.net/huanbia/article/details/68070683

如果设置默认源时出现问题:wget不能解析主机地址,可以参考链接:https://blog.csdn.net/qing_yc/article/details/55522164

参考链接:

https://blog.csdn.net/xiaohuixing16134/article/details/79394851