centos7运行yum报如下提示:Run “yum repolist all“ to see the repos you have
Posted 最小的帆也能远航
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7运行yum报如下提示:Run “yum repolist all“ to see the repos you have相关的知识,希望对你有一定的参考价值。
centos7运行yum报如下提示:
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 -y install yum-utils
如果不能运行先试着更换yum源:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
以上是关于centos7运行yum报如下提示:Run “yum repolist all“ to see the repos you have的主要内容,如果未能解决你的问题,请参考以下文章
centos7使用yum安装时提示/var/run/yum.pid 已被锁定,PID 为 3602
Centos7最小化安装报错There are no enabled repos. Run "yum repolist all" to see the repos you have