As of Homebrew version 0.9.5, it appears that will find items in brew search without actually having Homebrew Cask installed. You can also install them, but this will actually install Caskroom/cask/ as a dependency along the way.brew-cask
Try:
brew install Caskroom/cask/atext
I had this problem, and was able to manage it by running the command in the first post at https://github.com/Homebrew/homebrew-cask/issues/58046 -- which is:
/usr/bin/find "$(brew --prefix)/Caskroom/"*'/.metadata' -type f -name '*.rb' -print0 | /usr/bin/xargs -0 /usr/bin/perl -i -pe 's/depends_on macos: \[.*?\]//gsm;s/depends_on macos: .*//g'
According to that post:
This will remove all depends_on macos references of installed casks (where it doesn’t matter anymore anyway).
According to the homebrew FAQ, to uninstall homebrew you use:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
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):
while [[ `brew list | wc -l` -ne 0 ]]; do
for EACH in `brew list`; do
brew uninstall --force --ignore-dependencies $EACH
done
done
This will get a list of all the installed packages and loop over them removing one at a time, ignoring any dependencies.
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 and --force options, but belt and braces...--ignore-dependencies