brew / homebrew
brew / homebrew
restore all brew packages on a new system
create a Brewfile … well, on your old/original system
brew bundle dump --file Brewfileinstall all packages:
brew bundleremove casks including associated files
warning from the man page: May remove files which are shared between applications.
brew uninstall --zap microsoft-edge
brew uninstall --zap --force microsoft-edge # if it has been manually deleted from /Applications/ alreadyupdate brew (packages/apps)
brew update
brew upgrade
brew cask upgradeclear 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