1.问题:
手贱把yum源CentOS-Base.repo删除了执行yum install wget
报错There are no enabled repos. Run "yum repolist all" to see the repos you have.
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>
执行yum repolist all
查询发现无可用仓库,全部被禁用
2.解决:
在/etc/yum.repos.d/目录下执行
curl -o CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
获取阿里云仓库配置