Is there a command-line equivalent to "Only return exact matches"?

Marcus Brinkmann Marcus.Brinkmann at
Tue Jun 24 14:32:02 CEST 2003

On Tue, Jun 24, 2003 at 09:02:38AM +0930, jonathan soong wrote:
> searching on the KeyID is not possible as i will not know the key id. :(

How do you know what exact match to search for then?  If you don't know the
key ID in advance, I assume you are talking about a key defined by some
other parameter like user ID, and then you can not be sure that there will
be only one exact match.

The only case where I think you will want an exact match is if you have for
example a particular signature you want to verify.  But then gpg will give
you the key ID in the ERRSIG status message (--status-fd option):

    ERRSIG  <long keyid>  <pubkey_algo> <hash_algo> \
            <sig_class> <timestamp> <rc>
        It was not possible to check the signature.  This may be
        caused by a missing public key or an unsupported algorithm.
        A RC of 4 indicates unknown algorithm, a 9 indicates a missing
        public key. The other fields give more information about
        this signature.  sig_class is a 2 byte hex-value.


`Rhubarb is no Egyptian god.' GNU    marcus at
Marcus Brinkmann              The Hurd
Marcus.Brinkmann at

More information about the Gnupg-devel mailing list