Linux command
gpgv 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Verify a signed file
gpgv [file.sig]
Verify detached signature
gpgv [file.sig] [file]
Use specific keyring
gpgv --keyring [keyring.gpg] [file.sig]
Verbose verification
gpgv -v [file.sig]
Quiet mode
gpgv -q [file.sig]
说明
gpgv is a stripped-down version of gpg designed solely for verifying OpenPGP signatures. It assumes all keys in the keyring are trustworthy and does not check for expired or revoked keys. By default, it uses the trustedkeys.kbx or trustedkeys.gpg keyring in the GnuPG home directory. It is commonly used in package managers and automated verification scripts where trust is pre-established.
参数
- -v, --verbose
- More information during processing.
- -q, --quiet
- Try to be as quiet as possible.
- --keyring _file_
- Use specified keyring.
- --homedir _dir_
- GnuPG home directory.
- --ignore-time-conflict
- Turn timestamp checks into warnings.
- --weak-digest _name_
- Treat digest as weak.
- --status-fd _n_
- Write status strings to file descriptor.
FAQ
What is the gpgv command used for?
gpgv is a stripped-down version of gpg designed solely for verifying OpenPGP signatures. It assumes all keys in the keyring are trustworthy and does not check for expired or revoked keys. By default, it uses the trustedkeys.kbx or trustedkeys.gpg keyring in the GnuPG home directory. It is commonly used in package managers and automated verification scripts where trust is pre-established.
How do I run a basic gpgv example?
Run `gpgv [file.sig]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -v, --verbose do in gpgv?
More information during processing.