40

I want to install gpg2, however when I run brew install gpg2 (also tried brew install gnupg2) it always installs gpg instead of gpg2.
Currently, running the gpg command works but not gpg2. How can I resolve this?

EDIT: Tried brew install gnupg gnupg2 too but didn't work

Pear
  • 785
  • 2
  • 10
  • 19

2 Answers2

43

Homebrew just links the gpg2 binary as gpg.

Your gpg command is actually already the correct and expected version.

Devin Reams
  • 972
  • 1
  • 7
  • 15
jackieyang
  • 730
  • 4
  • 6
28

Installing gpg is enough according to the online package browser for Homebrew:

gnupg
Also known as: gnupg2, gnupg@2.2, gpg, gpg2
Formerly known as: gnupg2

Run: gpg --version in the terminal to check you have the right version.

Swoot
  • 1,304
  • 11
  • 12