The Homebrew Brewfile
Homebrew has introduced a great new feature to keep a running list of your most loved packages, the Brewfile.
UPDATE: brew bundle was deprecated and removed but there’s a new official replacement. Thanks to Mike McQuaid for the heads up!
Brewfile Example
# Make sure we’re using the latest Homebrew
update
# Upgrade any already-installed formulae
upgrade
# Version Control
install git
# Install other useful binaries
install android-sdk
tap homebrew/versions
# Remove outdated versions from the cellar
cleanup
# Make sure we’re using the latest Homebrew
update
# Upgrade any already-installed formulae
upgrade
# Version Control
install git
# Install other useful binaries
install android-sdk
tap homebrew/versions
# Remove outdated versions from the cellar
cleanup
Just save this as Brewfile, and you can run it via the bundle command.
Bash
brew bundle ~/Dropbox/dotFiles/Brewfile
There is the added benefit of syncing between multiple machines. As you can see in the example above I store mine in Dropbox, so I can keep the same packages updated on both my desktop and laptop. This also works great in a custom dotfiles setup.
Here is a link to my Brewfile to get you started. Cheers!
Beer Icon from The Noun Project
Comments (2)
Leave a Reply
Just in case you’re interested: `brew bundle` was deprecated and removed but there’s a new official replacement built by @andrew: https://github.com/Homebrew/homebrew-brewdler
Link to commentThanks Mike! I’ve updated the post and linked to your comment. I hope that’s cool!
Link to comment