CentOS7下yum安装wget出错
程序员文章站
2022-06-02 18:52:18
...
出错命令:
yum -y install wget
错误信息
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
To enable Red Hat Subscription Management repositories:
subscription-manager repos --enable <repo>
To enable custom repositories:
yum-config-manager --enable <repo>
解决方案
先执行命令:
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
再执行命令
yum -y install wget
上一篇: 教你用PS如何裁切和压缩电子版照片
下一篇: route命令详解