brew bundle reporting "Error: unknown command: bundle"

Solution 1:

According to my question on this topic in the issues section of the homebrew repository, brew bundle has been deprecated.

https://github.com/Homebrew/homebrew/issues/32952

Solution 2:

In essence, all commands you had in your Brewfile can be used in a bash script.

If you want to have a single file for your packages listing, one per line, and read it from your bash script, you can do brew install $(cat my-file-with-dependencies).

Suppose you have in brewfile-basic:

hub
git-extras
bash-completion

Now create brewbundle.sh:

brew install $(cat brewfile-basic)

# Cleaning up Brew caches

brew linkapps
brew cleanup
brew prune

You haven't run this command for a while. For the last months, it was said it was deprecated.