gpgv
all
Verify OpenPGP signatures. Note: `gpgv` reads trusted pubkeys from `~/.gnupg/trustedkeys.kbx` in absence of the `--keyring` option. See also: `gpg`.
More info →Options (1)
-o, --outputbooleanVerify a detached signature using a specific public key file in plain text format (`.txt`)
Example:
gpg --dearmor {{[-o|--output]}} {{path/to/pubkey.gpg}} {{path/to/pubkey.txt}} && gpgv --keyring {{path/to/pubkey.gpg}} {{path/to/signature.asc}} {{path/to/data_file}}Examples (4)
Verify a clearsigned or inline-signed file (the signature is embedded in the file itself)
gpgv path/to/file.ascVerify a detached signature (`.asc` or `.sig`) against its corresponding data file
gpgv path/to/signature.asc path/to/data_fileVerify a detached signature using a specific public keyring or exported public key file (`.gpg` or `.kbx`)
gpgv --keyring path/to/pubkey_or_keyring.gpg path/to/signature.asc path/to/data_filemade by @shridhargupta | data from tldr-pages