Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Homebrew is halfway installed. Can't re-install or uninstall - How can I manually uninstall?

I seem to have dug myself into a corner.

I was halfway through installing Homebrew the first time and it got stuck. After ~15 minutes of waiting I quit terminal. My original input was what's from the homebrew homepage.

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

I reopened terminal and tried to re-install 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 suggested, I ran

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

and got

-bash: brew: command not found

I tried to run the uninstall script from the Homebrew FAQ and that didn't seem to help either. Anything else I can try? How would I manually uninstall?

like image 479
tmschl Avatar asked Nov 15 '12 00:11

tmschl


People also ask

Where is Homebrew installed on Mac?

On Mac Intel machines, that's all you need to do; Homebrew is ready to use. On Mac Intel, Homebrew installs itself into the /usr/local/bin directory, which is already configured for access by the shell with the macOS default $PATH environment variable (the default is set by the /usr/libexec/path_helper command).

How much space does Homebrew take up Mac?

In order to install Homebrew, you need to install either the Xcode Command Line Tools (about 100 MB) or the full Xcode package (about 10 GB). In this tutorial, you will install Command Line Tools as they are a more reasonable size. Command Line Tools gives Mac users many commonly used tools, utilities, and compilers.


1 Answers

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

After you killed terminal did you 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.

like image 70
jrwren Avatar answered Sep 17 '22 21:09

jrwren