1.Mac安装Homebrew 执行以下命令,即可安装brew: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2.Mac安装yum brew 安装完成,然后安装yum: brew install yum