Re:Show HN: Applite – Clean Homebrew front end app for macOS...
by JamesSwift on Thursday August 10, 2023 @04:31PM
(#37081369)
I have an idempotent provision script I use to install/update apps. The homebrew portion is basically
brew upgrade
HOMEBREW_NO_AUTO_UPDATE=1 brew bundle --file=Brewfile --cleanup --no-upgrade
Works really nicely to keep everything tidy, up-to-date, and transferable.
Re:Show HN: Applite – Clean Homebrew front end app for macOS...
by dividedbyzero on Thursday August 10, 2023 @05:48PM
(#37082214)
One more neat trick for Brewfiles: They're evaluated as Ruby code, so you can use if-else etc. to conditionally install things on different machines with a single Brewfile. I use that together with yadm to manage both work and private laptops with minimum duplication.
Re:Show HN: Applite – Clean Homebrew front end app for macOS...
by jmspring on Thursday August 10, 2023 @09:41PM
(#37084097)
Agree, it's good for those that prefer a GUI. I'm not sure the intended audience since if you are using Brew, you are generally doing a lot of commandline stuff.
Your mention of the cross multiple machine synchronizing, however, is interesting! Good to find.
I started to write something to better organize synchronizing my Homebrew installation across multiple machines, then thought someone must have done this well already. Sure enough,
https://pumpingco.de/blog/brewfile/
A fantastic, clean way to reinstall or synchronize Homebrew setups, using the command line. I'm surprised that Applite doesn't accept a brewfile to ease migration.
In my case I depend on Bash, Tailscale, and Ruby as installed by Homebrew, so a clean reinstallation is delicate. I have scripts to make sure I don't screw this up:
1 brew bundle dump.sh 2 uninstall homebrew.sh 3 install homebrew.sh 4 renew bash.sh 5 renew tailscale.sh 6 renew ruby.sh 7 renew brew bundle.sh choose-shell.sh