Skip to content

Homebrew

Homebrew is a package manager for macOS. It allows you to install common software and automatically determines the necessary configuration for successful installation on your machine. Once installed, Homebrew will also keep a log of software that needs updating and will quickly update all of your installed software with only a few keystrokes. Install Homebrew with the following command:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

One of the main ways we use Homebrew is to maintain a development environment on our macOS's that will be consistent with the Linux OS on our CHTC node. For this reason, we install the GNU version of many command line tools (e.g. grep, sed, awk). After installing Homebrew, download and run this Bash script to install all of the relevant GNU tools. If you have this GitHub repo cloned in $HOME/GitHub, you can use the following command to install the GNU tools:

sh ~/Github/ZamanianLabDocs/resources/zl_brew.sh

You can also install many common bionformatics packages with brew, for example:

brew install blast