在 Debian 系统里使用 yum 报错,通常是根本性问题,先给你结论:
Debian 不支持 yum,yum 是 Red Hat / CentOS 系的包管理器
你大概率看到的是类似:
bash: yum: command not found
或
There are no enabled repos
原因:
sudo apt update
sudo apt install 软件名
例如:
sudo apt install nginx
只有在以下情况才考虑:
sudo apt install yum
但仍然几乎不可用,因为:
可以直接告诉我:
我可以给你完全对应的 apt 命令,比 yum 简单得多。