I am wondering if there is a way to uninstall all "programs" installed by Homebrew? I was using it and installed programs that corresponded to programming or using C/C++ and used the terminal to compile it but will not be using it in a few months.
MacOS Homebrew – Uninstalling All Programs Installed
homebrewmacos
Related Question
- MacOS – the all installed programs
- Removing an application from homebrew-cask
- Homebrew – Why Won’t El Capitan Run Homebrew After Installation?
- Homebrew-Cask – Advantages of Installing a Program with Homebrew-Cask
- Homebrew – Location of Installed Packages List
- Imagemagick installed via Homebrew, convert missing
- List all homebrew packages explicitly installed by the user (without deps)
Best Answer
According to the homebrew FAQ, to uninstall homebrew you use:
If you don’t want to completely uninstall home-brew but just want to remove all packages installed by homebrew, I think this will do what you need (I’m not currently in a position to remove all of my packages to check):
I’ve enclosed the whole thing in a loop double check that after the first run all of the packages have been uninstalled—I’m pretty sure they will be due to the
--force
option, but belt and braces...