问题
I just rm a formula in tap homebrew/homebrew-core which is boost-python and boost since they seem to be broken. I want to delete them and retap them again.
What I have tried:
brew tap --repair and brew tap homebrew/homebrew-core
But they didn't work. What should I do to get these formulas back? https://github.com/Homebrew/homebrew-core/blob/master/Formula/boost-python.rb https://github.com/Homebrew/homebrew-core/blob/master/Formula/boost.rb
回答1:
The way to fix it is directly installing a formula from Github:
brew install https://github.com/Homebrew/homebrew-core/blob/master/Formula/boost-python.rb
来源:https://stackoverflow.com/questions/40847507/how-to-restore-brew-formula-after-i-rm-it