Homebrew is set halfway. Unable to reinstall or remove - how can I remove manually?

I seem to have dug myself into a corner.

I was halfway through installing Homebrew for the first time, and it was stuck. After ~ 15 minutes of waiting, I exit the terminal. My original entry was from the home page.

ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" 

I reopened the terminal and tried to reinstall and got -

 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 

So, as I said, I ran

 rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup 

and received

 -bash: brew: command not found 

I tried running the uninstall script from the FAQs about Homebrew and did not seem to help. Anything else I can try? How do I manually delete?

+7
source share
2 answers

So what happens if you run ruby ​​-e "$ (curl -fsSkL raw.github.com/mxcl/homebrew/go) again?

After you killed the terminal, you made ps auxw | grep -E 'ruby | curl 'and kill those?

Are you using / usr / local for anything else? If not, you can rm -rf / usr / local and run the install command again.

+2
source

I'm not a professional in the terminal, but I found a line in my .gitconfig that prevented me from starting the installation:

 [push] default = simple 

After commenting on this line from my .gitconfig, the installation was performed beautifully.

0
source

All Articles