How to restore brew formula after I rm it

蓝咒 提交于 2020-01-17 03:36:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!