5 ms·
A quick PSA for those using Mac OSX with homebrew or a Linux variant with apt-get: There are two versions of gpg on homebrew. If you're like me, you installed
by kerkeslager 12y ago
A quick PSA for those using Mac OSX with homebrew or a Linux variant with apt-get:
There are two versions of gpg on homebrew. If you're like me, you installed gpg with:
brew install gpg
or
sudo apt-get install gpg
However this gives you:
$ gpg --version
gpg (GnuPG) 1.4.18
...
What you probably want is:
brew install gpg2
or
sudo apt-get install gnupg2
This gives you:
$ gpg2 --version
gpg (GnuPG) 2.0.26
libgcrypt 1.6.2
...
This is probably what you want, as it's the stable version.
There's no harm in using gpg 1.4.x; the docs indicate that this is maintained because of its use on older and embedded systems, and AFAIK there's no reason to suspect gpg 1.4.x's security if you trust 2.0.x. It's just that the 1.4.x version has fewer features.
I haven't tried other package managers, but I suspect they also have this minor pitfall.
- teamhappy 12y agoIn case you still want 2.1 on OS X: brew tap homebrew/versions brew install gnupg21
- isomorphic 12y agoIt's worth noting that Homebrew has "gpg" and "gpg2" as aliases for the "gnupg" and "gnupg2" formulae, respectively. This might be confusing to some people wondering why there are two versions of the same thing.