通过 brew 安装 yum 的确切命令是什么?

What is the exact command to install yum through brew?

我尝试通过 brew install 命令安装 yum。但它不适用于下面的消息。问题是什么?找不到好的资料。

$ brew install "yum"
Error: No available formula with the name "yum" 
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.

yum 是 Red Hat Linux 的包管理器。它不适用于 macOS。 brew 是 macOS 的包管理器

因此,与其尝试安装 yum 来安装另一个软件,不如尝试直接使用 brew 安装此软件。但要注意:包名可能不一样。使用 brew search 在 brew 中搜索软件包,或者更好的是,尝试为您尝试安装的软件找到 macOS 的特定说明。