---
title: Easily save and restore all of your gem executables
date: 2024-08-01 14:17
slug: easily-save-and-restore-gem-executables
categories:
- Code
tags:
- homebrew
- bundle
- ruby
- scripting
- gem
---

[bundler]: https://github.com/ttscoff/bundle_gem_bins

I've always liked [Homebrew's bundle command](https://github.com/Homebrew/homebrew-bundle). You can save a snapshot of everything you've installed with Homebrew, and then reinstall the snapshot on a new system.

I also like [Ruby's Bundler](https://bundler.io/), which lets you save all of the gems needed by an application and then install them easily with `bundle install`.

However, I don't like installing Ruby gems with Homebrew, mostly because brew-gem isn't up-to-date and barely functions these days. I install all of my gems with just `gem install`.

Because of this, binaries that are installed by gems aren't included when I do a `brew bundle install`. And Ruby's bundler is project-specific. So I [wrote a script][bundler] that will save a snapshot of every gem that has a binary installed on your system, and then do a `gem install` on all of them when setting up a new system.

I gave it a decent README, so if this is of interest, go check it out. If you use any of my tools like `howzit` or `na`, you've probably installed those with `gem install` and they won't be included if you try to restore using Homebrew (or dot files, etc.). So do yourself a favor and create a snapshot!

Please share issues and suggestions using the Issues section of the script's [GitHub home][bundler].

---

Brett is a writer and developer living in Minnesota, USA. You can follow him as ttscoff. This content is supported by readers like you. [More about Brett](https://brettterpstra.com/contact.md), including social links.

Copyright © 2026 Brett Terpstra. All rights reserved.
