执行yum命令,比如yum clean all或yum makecache提示如下错误:
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>
【解决方案】
执行以下两个命令:
1)yum repolist all:列出所有的repo源
2)sudo yum-config-manager --enable 【repo源名】:使能对应的源