Sorry to disappoint if you thought this was about beer and not the package manager for macOS. If you have a Mac and you aren’t using Homebrew, you should.
By way of background, my main Mac (a MacBook Pro (Retina, 15-inch, Mid 2015) - the last version with a hardware escape key) has been having some periodic issues with wireless of late, a problem which I attribute partially to the fact that I’ve been doing the “pull forward from Time Machine” dance since at least Lion, and maybe Snow Leopard, and two previous laptops.
I opined to Gaige that I thought I was overdue for a build-from-scratch, and he concurred. Almost as an afterthought, he said “don’t forget to dump out Homebrew”.
You can do that? Indeed you can. You’d miss it if you were looking for keywords like “export” or “migrate” but Homebrew can dump out a bundle, which is basically a meta-package which consists only of dependencies, which you can then install… “quickly” is the wrong word, let’s say “painlessly and then go for a long lunch” on a new machine or reimaged old machine.
OK, not that many packages installed, but it sure would have been a pain to discover slowly, over time, each missing package as I needed it.
I copied this file over onto the old laptop which had next to nothing installed via Homebrew on it, and imported thus:
Sweet. Two hours plus later and only one failure (had qt actually built it would have taken another hour and a half; that software is slooooow).
Back to the app store to install full Xcode. What’s another 5.9gbytes between friends? Back from lunch, run it again:
And there ya have it, same Homebrew packages installed on the spare MBP that were installed on my current production Mac.
This should serve me well when I go to reinstall. Only trick now is figuring out how to do without my laptop for a whole day while the installation percolates.