Back up your Homebrew profile
As of Homebrew v1.0.0, Homebrew now comes with a brew bundle dump
command. homebrew-backup continues to be functional, but I recommend moving to brew bundle
instead.
brew tap rstacruz/backup
brew backup
Creates the following files:
brew.sh
— List of Homebrew packagescask.sh
- List of cask packages, if Cask is installedindex
- List of versions
On a different machine, you can run brew.sh
and cask.sh
to reinstall the same packages.
Optional, but recommended: commit these files into a Git repo and share them to the world!
- Example
brew.sh
:
# taps
brew tap homebrew/versions
brew tap neovim/neovim
# packages
brew install aria2
brew install autoconf
brew install autojump --HEAD
...
-
Example
cask.sh
:# taps brew tap caskroom/cask brew tap caskroom/fonts brew install caskroom/cask/cask # casks brew cask install alfred brew cask install appcleaner brew cask install dropbox ...
NB: API still subject to change
brew-backup © 2015+, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors (list).
ricostacruz.com · GitHub @rstacruz · Twitter @rstacruz