Following up on How to import keys from a keyserver using gpg in debian?, which asked for importing keys from a keyserver using gpg into our own ~/.gnupg/pubring.kbx
file,
but my question is asking how to do that but save to a .gpg
file instead, something like the following (neither is working obviously):
gpg --keyserver keyserver.ubuntu.com --recv-keys 91E7EE5E --dearmour -o /tmp/ppa.gpg
or
gpg --export --keyserver keyserver.ubuntu.com --recv-keys 91E7EE5E | sudo gpg --dearmour -o /tmp/ppa.gpg
gpg
(of not behaving as the man page says), but--dearmour
worked for me. – xpt Jun 16 '23 at 03:10