Linux command
rpmkeys 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
List
sudo rpmkeys --list
Import
sudo rpmkeys --import [path/to/rpm_key]
Delete
sudo rpmkeys --delete [5a278d9c-5bbc73cb]
说明
rpmkeys manages GPG keys used to verify RPM package signatures. When adding an RPM repository, you should also import its corresponding signing key to enable signature verification and ensure packages are authentic. Keys are stored in the RPM database and used automatically during package installation to verify that packages haven't been tampered with. The --list option displays Key IDs needed when removing keys.
参数
- --import
- Import a public key from a file
- --delete
- Delete an imported key by its Key ID
- --list
- List all imported RPM keys with their Key IDs
- --checksig, -K
- Verify package signatures
- -v, --verbose
- Provide more detailed output
FAQ
What is the rpmkeys command used for?
rpmkeys manages GPG keys used to verify RPM package signatures. When adding an RPM repository, you should also import its corresponding signing key to enable signature verification and ensure packages are authentic. Keys are stored in the RPM database and used automatically during package installation to verify that packages haven't been tampered with. The --list option displays Key IDs needed when removing keys.
How do I run a basic rpmkeys example?
Run `sudo rpmkeys --list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --import do in rpmkeys?
Import a public key from a file