当前位置:   article > 正文

There are no enabled repos. Run “yum repolist all“ to see the repos you have. You can enable repos问题_there are no enabled repos. run "yum repolist all"

there are no enabled repos. run "yum repolist all" to see the repos you have

今天安装yum后使用yum安装软件,报There are no enabled repos. Run "yum repolist all" to see the repos you have. You can enable repos错误,才发现linux不同系列的包管理工具是不同的,有必要记录一下。

场景是这样的,安装MySQL之前需要先安装依赖,于是使用yum安装依赖。如下:

yum install -y bison* ncurses* openssl-devel cmake

 发现没有安装yum,那么就使用命令sudo apt install yum安装一下。安装好之后再次执行上面的命令,提示

There are no enabled repos. Run "yum repolist all" to see the repos you have. You can enable repos

查了下资料,才发现不应该装yum的,我用的是ubuntu,应该使用apt-get包管理工具。有必要记一下。

linux系统基本上分为两大类:

RedHat系列和Debian系列。

1.RedHat系列包括:RedHat、CentOS、Fedora等。

其常见的安装包格式为:rpm包,安装的命令是"rpm -参数"

包管理工具为yum,支持tar包

2.Debian系列包括:Debian、Ubuntu等。

其常见的安装包格式为:deb包,安装的命令是"dpkg -参数"

包管理工具为apt-get,支持tar包。

ubuntu一般使用apt安装就可以了。所以安装MySQL的依赖这里使用apt install就好了。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/秋刀鱼在做梦/article/detail/947456
推荐阅读
相关标签
  

闽ICP备14008679号