CentOS最小化安装后没有wget的解决办法

2018-01-24 21:20:32 10384



#yum update


#yum -y install wget

还是不行,看来是yum源里就没有wget,不科学嘛!手动换源!个人比较习惯用阿里云的yum源,下载后,winscp上传至/etc/yum.repos.d/,注意备份下原文件(这只是个好习惯而已,原来难的源连wget都没,真心没啥好保留的),重新执行!


#yum  clean  all 

#yum -y install  wget

OK,大功告成!


顺手再更新下,# yum update && yum upgrade


Complete!

已加载插件:fastestmirror

设置升级进程

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

Loading mirror speeds from cached hostfile

 * base: mirrors.aliyun.com

 * extras: mirrors.aliyun.com

 * updates: mirrors.aliyun.com

可以看到yum源已经更换成阿里云的了。


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: