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查询发现无可用仓库,全部被禁用

本文讲述了在误删除yum源CentOS-Base.repo后,如何通过从阿里云获取新的仓库配置文件来解决yum install报错的问题,包括执行yum repolistall和curl命令恢复仓库的过程。
最低0.47元/天 解锁文章
534





