I have to save this because I forget about this every single time I build a new install, and can’t figure out why I keep getting “gpg-agent is not available in this session”.
The components come from different packages (gnupg2-2.1.7-1.fc22.x86_64 and gnupg-1.4.19-2.fc22.x86_64 in my case). The solution is to use the gpg2 command instead of gpg
Source: How to make gpg find gpg-agent – Unix & Linux Stack Exchange