Install the gpg package: sudo apt install gpg
.
Install the following packages with brew: brew install gnupg pinentry-mac
.
Then add the following configuration to the ~/.gnupg/gpg-agent.conf
:
# macos with intel
echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf