FAQ: update uninstall method

Closes Homebrew/homebrew#38457.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Xu Cheng 2015-04-08 19:14:43 +08:00
parent 3587dc441e
commit b77c7ad442

View File

@ -44,14 +44,13 @@ to see what would be cleaned up:
<a name="uninstall"></a>
### How do I uninstall Homebrew?
If you installed to `/usr/local` then you can use the script in [this
gist](https://gist.github.com/1173223) to uninstall — it will only
remove Homebrew and the stuff Homebrew installed leaving anything else
in `/usr/local` alone.
To uninstall Homebrew, paste the command below in a terminal prompt.
Provided you havent put anything else in Homebrews prefix
(`brew --prefix`), you can generally just `rm -rf` that directory. This
is because Homebrew wont touch files outside its prefix.
```bash
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
```
Download the [uninstall script](https://raw.githubusercontent.com/Homebrew/install/master/uninstall)
and run `./uninstall --help` to view more uninstall options.
<a name="uninstall-package"></a>