Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install gpg2 via homebrew?

Tags:

macos

homebrew

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

like image 313
Pear Avatar asked Feb 26 '19 22:02

Pear


2 Answers

Homebrew just link gpg2 binary as gpg.

Your gpg command is actually already the correct version.

like image 96
jackieyang Avatar answered Nov 13 '22 11:11

jackieyang


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

gnupg
Also known as: gnupg2, [email protected], gpg, gpg2
Formerly known as: gnupg2

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

like image 23
Swoot Avatar answered Nov 13 '22 10:11

Swoot