This post describes how to install homebrew, as as well as casks (software applications).

Getting ready

Step 1: Open Your Terminal program

Search in launchpad or spotlight for ""

Step 2: Accept the license agreements

Copy and paste the below commands in your terminal. Be sure to read and accept the agreements.

xcode-select --install
sudo xcodebuild -license

Step 3: Check if Ruby is installed, then update the files

Make sure that you can run ruby from command line by typing:

ruby -v

Install homebrew

Homebrew is basically a package manager for the Mac, and in this being used to fix the default Ruby version that comes with the Mac. It will also be used further into the tutorial to install other development items.

Copy Install Script

Go to the homebrew site ( and check out the latest download code and run in in the terminal. It should look something like this:

/bin/bash -c "$(curl -fsSL"

Once the install has completed, its best to run the below commands to make sure your installation is okay and has the latest files.

Test commands

brew doctor
brew update

Updating Homebrew packages

To update packages, you will need to run an update, and upgrade like below:

brew update
brew upgrade
Once in awhile you may want to also clean up unneeded files by this command:
brew cleanup

Install some brew packages

You can install a package (called Formulae) either in bulk or one at a time.

One at a time:

brew install wget


brew install wget node [email protected]


ffmpeg: is a great library for converting videos, and more. I typically use on my own video files to convert or stream media files.

Default installation:

brew tap homebrew-ffmpeg/ffmpeg
brew install homebrew-ffmpeg/ffmpeg/ffmpeg

Check out the homebrew github repo to see the options: ffmpeg Github repository


Installing the Mongo Database is similar to ffmpeg. Run the following steps:

brew tap mongodb/brew
brew install mongodb-community

To run as background service:

brew services start mongodb/brew/mongodb-community

Run on demand (in terminal):

mongod --config /usr/local/etc/mongod.conf

Enable and Install Casks

Casks is basically software that you can install directly from homebrew, instead of going to a site and downloading a file. I prefer casks, as it will also run a sha check (if available), and will output errors to your screen (if issues).

brew tap homebrew/cask-versions

Unfortunately, I could not find a way to bulk install casks anymore, so you will need to run them one at a time. Underlined item is the cask.

brew install --cask firefox

A list of great casks are below. To find more, the homebrew site has a huge database of ones available: Homebrew formulae

For some installations, if they fail, retry after you enable it in: System Preferences → Security & Privacy → General.

  • isyncr
  • visual-studio
  • visual-studio
  • gog-galaxy
  • origin
  • virtualbox
  • virtualbox-extension-pack
  • backblaze
  • backblaze-downloader
  • malwarebytes
  • dosbox-x
  • skype
  • github
  • vlc
  • handbrake
  • iterm2
  • spotify
  • sequel-pro
  • plexamp
  • firefox
  • keepassxc
  • visual-studio-code
  • calibre
  • appcleaner
  • tor-browser
  • jetbrains-toolbox
  • xampp
  • google-chrome
  • dash
  • protonmail-bridge
  • netbeans-php
  • java (installs the openJDK)

If you want to run multiple Java Versions, check out this guide: Installing Java on a Mac using Homebrew and jevn-12m8

Update Ruby and installed gems.

brew install ruby
Next, make sure you add Ruby to your shell configuration. Bellow is te shell for the default in Big Sur (fresh copy):
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc
exec zsh

exec zsh: will restart your terminal so the path kicks in. If you do not ant to run this, simple type exit, then quit your terminal application. Next, restart it.

Next, update your ruby gems:

gem update --system
gem update

Or if you want to have multiple versions, follow this great digital ocean guide: