markdown 卸载所有Homebrew和casks

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 卸载所有Homebrew和casks相关的知识,希望对你有一定的参考价值。

I recently had to uninstall/reinstall my brew casks and recipies because I had royally screwed something up.  I have a script to re-install all the things I want so it was no drama except for the downloads and re-install, and some oversights when I uninstalled brew.  So here is what I think I *should* have done:

# 1. uninstall any applications installed with brew cask

```bash
$ for APP in $(brew cask list); do
  brew cask uninstall $APP
done
```

# 2. uninstall Homebrew:

(see [the install/uninstall help on GitHub](https://github.com/Homebrew/install))

```
$ http https://raw.githubusercontent.com/Homebrew/install/master/uninstall  > uninstall #or curl -fsSL
$ chmod +x uninstall
$ ./uninstall --help
$ ./uninstall --force
```

# 3. re-install Homebrew

Either run the installer as described, or use [my dotfiles](https://github.com/sinewalker/dotfiles) which takes care of everything.

以上是关于markdown 卸载所有Homebrew和casks的主要内容,如果未能解决你的问题,请参考以下文章

Homebrew的安装卸载和扩展

Mac安装和卸载HomeBrew

markdown 使用Homebrew安装Apache 2.4和PHP 7.1

[转]Homebrew 卸载时出现:Failed to locate Homebrew! 错误

Homebrew

markdown 使用Homebrew安装的pg和openssl在Mac上构建pgmodeler