其他分享
首页 > 其他分享> > 没有wget Loading mirror speeds from cached hostfile

没有wget Loading mirror speeds from cached hostfile

作者:互联网

问题描述

新装的系统,没有一些常用命令的rpm包.使用ifconfig,报错

Loading mirror speeds from cached hostfile解决

网上解决方案是换数据下载源,但是,wget命令的rpm也没有

解决


cd /etc/yum.repos.d/



curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo


yum -y install wget



mv CentOS-Base.repo CentOS-Base.repo.backup


wget http://mirrors.163.com/.help/CentOS7-Base-163.repo



mv CentOS7-Base-163.repo CentOS-Base.repo


yum clean all


yum -y update

标签:Loading,hostfile,CentOS,cached,repo,Base,yum,wget
来源: https://www.cnblogs.com/liuyangfirst/p/14058889.html