I can install this manually with a script inside. One in ~.private which I install right after installing brew and before setting up my basic. My current minimal Brew on macOS is: tap "homebrew/core" In particular, I like brew cu pin which locks an app to a specific version.
Then to upgrade all of you Mac apps, just do: brew cuĬask-Update details some other features.
On can search for fonts once tapped by brew search fontįinally, there is a Cask-Update tool that works with brew cask to update all of your Mac apps.Īdd this to your Brewfile: tap "buo/cask-upgrade" Do brew tap homebrew/cask-fonts" and Add this top the top of your Brewfile`: tap "homebrew/cask-fonts" You even install many open source fonts this way. To use this make sure that these entries are near the top of your Brewfile: tap "homebrew/cask" Not everything is avaiable this way, but the most important ones are. Three tools that really make this work for more than just development tools is the ability to install a large number of macOS UI apps using brew cask install, Mac Apple Store apps using mas install, search for them using brew search & mas search. If you want your current system configuration to match your brewfile brew bundle -force cleanupĪ key practice is to install EVERYTHING possible using brew, brew cask, or mas. If a Brewfile already exists, you'll need to do brew bundle dump -force brew bundle dump -file=~/.private/Brewfile Or to a specific directory and file name. You can dump a Brewfile of your current brew/cask/mas entries into your current directory with brew bundle dump Or more specifically: brew bundle install -file=rs-brew-dump If you want to use a brewfile from a non-standard place. Looks for ~/Brewfile and installs its contents Install a specific brewfile The most basic command brew bundle install If you have a github account, it will also install basic github permissions. Rm /tmp/.-progressĪnother easy way to install all of this, along with some good basic security hardening practices, is to use Mike McQuaid's Strap tool by going to.
I don't like downloading all of Xcode, so I use this trick to only install the latest command-line tools. If you don't have a recent version of macOS, you may need to install the latest Xcode command tools first. Open terminal.app (command-space + "terminal") and paste this command on the command line. Installing BrewĬompete details are at Brew but fairly simple to install. I am considering some cross-platform development scripts to use Brew instead. As doing development, or experimenting with new apps can break your system, I can easily restore back to a known configuration, both on my primary Macs, but also in VMware Fusion instances where I do more testing, including testing on old versions of MacOS and new beta versions of MacOS.Ī version of Brew also is available on Linux, but I mostly use apt-get on Debian. It does this a feature called Bundle that uses Brewfiles. You probably should be using it if you are a power user as well, as it isn't really that difficult.Ī key feature of Brew is its ability to set up your Mac to a known configuration. If you are using a Mac as your development environment, you really should be using Brew. This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors. If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month and your contributions will be multipled, as GitHub is matching the first $5,000! Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
Brew Bundle Brewfile Tips Copyright & License