Any tips for migrating my homebrew (/usr/opt/) setup to a new Mac with minimal pain?

Reply to this note

Please Login to reply.

Discussion

No idea, ask AI? Lol

........

Any tips for migrating my homebrew (/usr/opt/) setup to a new Mac with minimal pain?

Sorry, didn't mean to paste your text first time. Didn't know how to share

Cheers!

Create a ‘Brewfile’ with ‘brew bundle dump’

Store the file somewhere safe (flash drive for instance)

Once the computer is set up again, install Homebrew, copy the Brewfile back and run ‘brew bundle install --file /path/to/Brewfile’

And then there are the dot files.

I used homebrew bundle to setup a brewfile for everything installed on my laptop.

Then on new laptop I just ran a script that installed everything on my brewfile.

Here are some references I used:

https://github.com/Homebrew/homebrew-bundle

https://github.com/thoughtbot/laptop

Excellent. Thanks. How did you handle dot files?

It’s been a while since I migrated last but I believe I used thoughtbot’s RCM to manage my dotfiles and back them up in a git repo

Then just pulled them down from git and used rcm (installed from laptop script) to put them back in place

https://github.com/thoughtbot/rcm

Fantastic. Thanks again. 🙌🏼