Bundler users define dependencies for Ruby applications in a Gemfileand install those dependencies by running
bundle install
.Homebrew users on macOS can define system dependencies for their projectswith a
Brewfile
:The
brew bundle
command is automatically installed the firsttime it is used. Simply create a Brewfile
at the rootof your project’s directory tree, and run brew bundle
while in thatdirectory.Note that Homebrew will treat lines that start with
#
as comments. To installa package, use brew
, and to tap a repository, use tap
. So this:is equivalent as these commands:
Timemore Cold Brew Bundle quantity. Ships on Tuesday Ships on Thursday. Back to Bundles. About This Product. Make cold brew coffee at home with the sleek conical Timemore Icicle Cold Brew Bottle. This cold brewer has a fine ultra-long filter so that coffee grounds soak evenly, it also makes it ideal to brew a small cup up to 500ml. Last week we mentioned a cool tool called `mas` - if you've installed it you can also use brewfiles to install Mac App Store apps. Brew bundle dump will automatically add these to your brewfile. Save your brewfile to iCloud or locally and now when you set up a new Mac you can use it to automatically install everything. The Bundle Includes: 2 Packs of Filter Coffee Hario V60 Dripper Hario V60 Paper Filter Hario V60 Glass Server Hiroki Scale.
Usage
I can think of a few places where a
Brewfile
would be welcome:- In dotfiles, either yours or your company’s.
- A setup script for your app (
bundle install && brew bundle
) - A setup script for a new machine. I often forget to install one of them (likerbenv-gem-rehash).
It’s a neat encapsulation for non-programming-language dependencies like
phantomjs
.What’s next
Brew Bundle Brewfile
If you found this useful, I recommend checking out the sourceof the
brew bundle
command. For more Homebrew tricks, read through ourmacOS-related posts.