2025-03-14 21:59:59 -06:00
|
|
|
# gpgv
|
|
|
|
|
|
|
|
|
|
> Verify OpenPGP signatures.
|
2025-12-16 10:20:31 -07:00
|
|
|
> Note: `gpgv` reads trusted pubkeys from `~/.gnupg/trustedkeys.kbx` in absence of the `--keyring` option.
|
|
|
|
|
> See also: `gpg`.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://www.gnupg.org/documentation/manuals/gnupg/gpgv.html>.
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Verify a clearsigned or inline-signed file (the signature is embedded in the file itself):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gpgv {{path/to/file.asc}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Verify a detached signature (`.asc` or `.sig`) against its corresponding data file:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gpgv {{path/to/signature.asc}} {{path/to/data_file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Verify a detached signature using a specific public keyring or exported public key file (`.gpg` or `.kbx`):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gpgv --keyring {{path/to/pubkey_or_keyring.gpg}} {{path/to/signature.asc}} {{path/to/data_file}}`
|
|
|
|
|
|
|
|
|
|
- Verify a detached signature using a specific public key file in plain text format (`.txt`):
|
|
|
|
|
|
|
|
|
|
`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}}`
|