Closed brianbrownton closed 5 years ago
- when homebrew is uninstalled the casks should be removed.
They are. They are not removed from /Applications
though. We'd review a PR to the uninstall
script to add this functionality but I think it would be fairly unexpected for a Homebrew uninstaller to remove e.g. a Google Chrome that you've installed with brew cask
.
- when brew bundle is run (or perhaps the cask command that I'm sure is eventually called), if there is already something installed it should be added to the list of installed casks.
The Casks were not installed but there were files in /Applications
that were not uninstalled and, once Casks were removed, were impossible to differentiate from being installed manually.
As mentioned above: this seems at most something that the uninstall should handle but even then I'm not yet convinced it's desirable functionality. What could be added to brew bundle
, if anything, would be a brew bundle --force
that passes through --force
to brew install
and brew cask install
.
I have read https://github.com/Homebrew/homebrew-bundle/issues/258 and see that installing casks with a --force flag should work, but this seems to be a not-great solution.
I recently (due to rbenv issues with brew) tried to freshly install homebrew by doing the following (per this thread):
It mostly went fine, my Brewfile (generated from
brew bundle dump
) is included below for reference. What didn't go fine was most of the casks did not reinstall correctly, erroring out with something like:So it would seem this issue can be resolved in two ways:
Either way, the current experience is pretty bad. It looks like I will have to find all the casks that failed to "install" (even though they were never uninstalled) and try to force install them? Is there a better way?
Brewfile: