There are no enabled repos—RedHat配置本地yum仓库
在安装某些软件包时有时会遇到这样的报错:
There are no enabled repos.
Run “yum repolist all” to see the repos you have.
You can enable repos with yum-config-manager --enable
大概率问题是找不到yum仓库
yum repolist all 回显为0
对此可通过原先ISO镜像配置本地yum仓库:
首先将镜像挂载,挂载至/mnt
进入如下目录
创建一个本地yum配置文件
对此文件进行编辑,输入如下:
wq保存,执行
列出所有仓库: