试了无数种教程,终于找到一个可以用的
参考教程
In your preferred Shell (bash / zsh / fish / etc), run this:
git -C $(brew --repo homebrew/core) checkout master
That will swich your brew from the “origin” branch to the “master” branch
From there, run this:brew install upx
git -C $(brew --repo homebrew/core) checkout master
brew install upx
验证安装
upx
安装成功!