There are no enabled repos.

今天要记录一下自己懵逼的一天,原来自己是Ubuntu系统,还以为是centos,导致命令错了

There are no enabled repos.
Run "yum repolist all" to see the repos you have.
You can enable repos with yum-config-manager --enable <repo>

一般来说著名的linux系统基本上分两大类:
1 RedHat系列:Redhat、Centos、Fedora等
2 Debian系列:Debian、Ubuntu等
RedHat 系列:
1 常见的安装包格式 rpm 包,安装rpm包的命令是 “rpm -参数”
2 包管理工具 yum
3 支持tar包
Debian系列
1 常见的安装包格式 deb 包,安装deb包的命令是 “dpkg -参数”
2 包管理工具 apt-get
3 支持tar包
所以你Ubuntu不该用yum 该用apt-get
---------------------
作者:兵哥LOVE坤
来源:CSDN
原文:https://blog.csdn.net/zdb292034/article/details/82424220
版权声明:本文为博主原创文章,转载请附上博文链接!

原文地址:https://www.cnblogs.com/imfjj/p/10004957.html