Bundle Brew



  1. Bundle Brewing Company
  2. Coffee Bundles
  3. Brew Install Openssl
By Casey Liss

As discussed on recent episodes of ATP, I’ve had some issues with my iMaclately. A trip to the Apple Store and new logic board later, I had functionalhardware but no software installed upon it. Finally, I had the opportunity totry out something I’ve been preparing for a long while: my Brewfile.

The Bundle Includes: 2 Packs of Filter Coffee Hario V60 Dripper Hario V60 Paper Filter Hario V60 Glass Server Hiroki Scale. Create your own perfect craft beer bundle filled with the best of BrewDog. Order online today at BrewDog to get free UK delivery. You can dump the list of currently installed packages with brew bundle dump. To duplicate your current installation, you'll need to run brew bundle dump to create a Brewfile install ARM Homebrew into /opt/homebrew by following the instructions in https://docs.brew.sh/Installation.

Much in the spirit of Ruby’s Bundler, Homebrew has Bundle.For both Bundler and Bundle, you provide a file with a list of software/dependenciesyou want installed, and the apps will install them automatically. In the caseof Bundler, it’s all Ruby gems; in the case of Bundle, it’s command line apps,Mac apps, and even fonts.

Last week, I loaded up my iMac from scratch using a Brewfile I had been addingto over the last couple years. Finally getting the opportunity to use it hasgiven me the opportunity to refine it.

These refinements ended up being extremely convenient, as just yesterday Idecided to nuke my MacBook and reload it to try to get it operating properly.Thanks to Bundle, that took considerably less time than it would have inyears past.

All it took was having ~/Brewfile, and then running

Give it a bit of time — a lot if you’re installing Xcode — andjust like that most/all of your favorite software is installed. All in oneeasy peasy command line incantation.

I can’t overstate how much time this has saved me. 🥳

Furthermore, as I add new items to my Brewfile, I can feel free to runbrew bundle install again. It will automatically skip software that’salready installed. In fact, the screen shot above was me re-running Bundlelong after it had worked its magic.

Your Brewfile is unique to you; it’s a distillation of your own particulartoolchains and requirements. There are many like it, but this one is mine.

UPDATED 2019-10-09 3:00 PM: Several people have asked “okay, but, how do Icreate a Brewfile to begin with?”

For me, I went spelunking through /Applications to see what I had and what Iknew I couldn’t live without. Generating my Brewfile from scratch was, to nosmall degree, the point.

If you’d like to take a shortcut to get yourself started, you can do:

Bundle Brew

brew bundle dump

This will create a Brewfile of everything Bundle recognizes on your existingsystem. At that point, you can go through and cull what you don’t think youreally need.

Bundler users define dependencies for Ruby applications in a Gemfileand install those dependencies by running bundle install.

Bundle Brewing Company

Bundle breaker video

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.

Coffee Bundles

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:

Video

is equivalent as these commands:

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).
Bundle Brew

It’s a neat encapsulation for non-programming-language dependencies likephantomjs.

What’s next

Brew Install Openssl

If you found this useful, I recommend checking out the sourceof the brew bundle command. For more Homebrew tricks, read through ourmacOS-related posts.