2016-11-18 49 views
0

在彈性搜索升級期間,我注意到我安裝了一個名爲「elasticsearch13」的舊自制軟件公式。無法卸載不推薦使用的Homebrew公式

$ brew list | grep elastic 
elasticsearch13 

這個公式已被棄用,除去。當試圖卸載這個公式,我給出的警告:

$ brew uninstall elasticsearch13 
Error: No available formula with the name "elasticsearch13" 

醫生沒有告訴我很多......

$ brew doctor 
Please note that these warnings are just used to help the Homebrew maintainers 
with debugging if you file an issue. If everything you use Homebrew for is 
working fine: please don't worry and just ignore them. Thanks! 

Warning: Unbrewed header files were found in /usr/local/include. 
If you didn't put them there on purpose they could cause problems when 
building Homebrew formulae, and may need to be deleted. 

Unexpected header files: 
    /usr/local/include/python2.7/greenlet/greenlet.h 

Warning: Your Xcode (8.0) is outdated. 
Please update to Xcode 8.1 (or delete it). 
Xcode can be updated from the App Store. 

如何刪除呢?

回答

0

不用擔心,解決了它自己:

找到最後一個提交github.com/Homebrew/homebrew-versions的(它已被刪除之前)並下載:

cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula 
curl https://raw.githubusercontent.com/Homebrew/homebrew-versions/2fabaf8210b1c9addc20e87da8c961aced58e2eb/elasticsearch13.rb > elasticsearch13.rb 

運行卸載腳本:

brew uninstall elasticsearch13 
rm elasticsearch13.rb 
相關問題