I have a copy of the postgresql apt repository gpg key and would like to view the details of the gpg key as it comes in the file. Is this possible without importing it into
To verify and list the fingerprint of the key (without importing it into the keyring first), type
gpg --with-fingerprint
Edit: on Ubuntu 18.04 (gpg 2.2.4) the fingerprint isn't show with the above command. Use the --with-subkey-fingerprint option instead
--with-subkey-fingerprint
gpg --with-subkey-fingerprint