Install GPG on Mac without GPG Tools

Setup a GPG client on Mac without using GPG Tools. Learn how to install GnuPG using Homebrew to get up and running fast!

Setting up a new macOS laptop means re-installing a slew of productivity tools. Coming from regularly using Linux, I realized that I was a bit spoiled when switching to Mac for Float, especially as it relates to package/application management.

One essential application that never gets any love is your trusty GPG client (or PGP or GnuPG or whatever you want to call it).

Every guide I've found online for using GPG on Mac involves installing GPG Tools, but I can't stand for it. I've used it in the past when I last had a Mac a few years ago, and it just felt like a bloated freemium product that is always trying to get me to upgrade and pay money. In addition, I like feeling cool and only using the command line where possible, so the GUI on this application isn't something I'd use regularly.

Instead, to my relief, there is a straightforward method to get a GPG client installed on Mac without installing GPG Tools.

Setting up GPG

Install Homebrew

We'll have to install Homebrew before we start. The setup is quick and easy, so you should be done in < 5 minutes once everything is downloaded and installed.

In short, there are three simple commands to get you going:

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

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile

eval "$(/opt/homebrew/bin/brew shellenv)"   

If this is a new machine, you might need to install some XCode dependencies during this process, adding to the total installation time.

Install gnupg

We're going to install good old gnupg as our GPG client. You have to love a simple, open-source project with a strong track record. If you're familiar with using GPG on Linux, you'll probably feel right at home!

brew install gnupg

Woah, that was fast! And voila, you're up and running with GPG on macOS!