1.git clone Homebrew/brew ~/.linuxbrew/Homebrew(未安装git命令的话直接用浏览器下载:Homebrew/brew)
2.mkdir ~/.linuxbrew/bin
3.ln -s ~/.linuxbrew/Homebrew/bin/brew ~/.linuxbrew/bin
4.eval $(~/.linuxbrew/bin/brew shellenv)
原文:https://www.cnblogs.com/yuncode/p/12871481.html