FreeBSD: installing and using GNU Privacy Guard (GPG)
April 29, 2010

to install GPG on FreeBSD:

cd /usr/ports/security/gnupg/
make install clean

Ensure to do this as root. From the install options, select at least CURL.

GNUPG 2.x on FreeBSD by default uses gpg-agent and pinentry for password entry - and for me pinentry was not auto-installed with GPG. To install:

cd /usr/ports/security/pinentry
make install clean

Do NOT install pinentry with the default options, unless you want to install a 120Mb X11 package of some description - NCURSES only is fine if you use the FreeBSD machine in terminal mode/text mode/SSH.

Notes:

Example Usage: