Skip to content

brew / homebrew

restore all brew packages on a new system

create a Brewfile ... well, on your old/original system

brew bundle dump --file Brewfile

install all packages:

brew bundle

remove casks including associated files

warning from the man page: May remove files which are shared between applications.

brew uninstall --zap microsoft-edge

update brew (packages/apps)

brew update
brew upgrade
brew cask upgrade

clear cache

because brew cleanup does not clean up all the things.

brew cleanup --prune=all -s
rm -r $(brew --cache)

reinstall all packages

brew list | xargs brew reinstall