安装依赖
sudo apt-get install build-essential procps curl file git
安装
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/ptz/.profile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
然后用 hello 来测试一下
brew install hello
参考
Homebrew on Linux
https://docs.brew.sh/Homebrew-on-Linux
Install Homebrew
https://brew.sh/