Homebrew正在安装中途.无法重新安装或卸载 - 如何手动卸载?

tms*_*chl 7 terminal homebrew command install uninstall

我似乎把自己挖到了角落里.

我是第一次安装Homebrew的一半,它被卡住了.等了~15分钟后我退出了终点站.我的原始输入是来自自制主页的内容.

ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
Run Code Online (Sandbox Code Playgroud)

我重新打开终端,试图重新安装并获得 -

It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
Run Code Online (Sandbox Code Playgroud)

所以,正如所建议的,我跑了

rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
Run Code Online (Sandbox Code Playgroud)

得到了

-bash: brew: command not found
Run Code Online (Sandbox Code Playgroud)

我试图从Homebrew常见问题解答中运行卸载脚本,这似乎也没有帮助.还有什么我可以尝试的吗?我该如何手动卸载?

jrw*_*ren 2

那么,如果再次运行 ruby​​ -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" 会发生什么?

杀死终端后,你是否 ps auxw | grep -E 'ruby|curl' 并杀死那些?

您是否将 /usr/local 用于其他用途?如果没有,您可以 rm -rf /usr/local 并再次运行安装命令。