| 1 |
.\" Automatically generated by Pandoc 3.1.11.1 |
| 2 |
.\" |
| 3 |
.TH "RPMKEYS" "8" "29 October 2010" "" "" |
| 4 |
.SH NAME |
| 5 |
rpmkeys \- RPM Keyring |
| 6 |
.SH SYNOPSIS |
| 7 |
\f[B]rpmkeys\f[R] |
| 8 |
{\f[B]\-\-list|\-\-import|\-\-delete|\-\-checksig\f[R]} |
| 9 |
.SH DESCRIPTION |
| 10 |
The general forms of \f[B]rpm\f[R](8) digital signature commands are |
| 11 |
.PP |
| 12 |
\f[B]rpmkeys\f[R] \f[B]\-\-list\f[R] [\f[I]KEYHASH ...\f[R]] |
| 13 |
.PP |
| 14 |
\f[B]rpmkeys\f[R] \f[B]\-\-import\f[R] \f[I]PUBKEY ...\f[R] |
| 15 |
.PP |
| 16 |
\f[B]rpmkeys\f[R] \f[B]\-\-delete\f[R] \f[I]KEYHASH ...\f[R] |
| 17 |
.PP |
| 18 |
\f[B]rpmkeys\f[R] {\f[B]\-K|\-\-checksig\f[R]} \f[I]PACKAGE_FILE |
| 19 |
\&...\f[R] |
| 20 |
.PP |
| 21 |
The \f[B]\-\-checksig\f[R] option checks all the digests and signatures |
| 22 |
contained in \f[I]PACKAGE_FILE\f[R] to ensure the integrity and origin |
| 23 |
of the package. |
| 24 |
Note that signatures are now verified whenever a package is read, and |
| 25 |
\f[B]\-\-checksig\f[R] is useful to verify all of the digests and |
| 26 |
signatures associated with a package. |
| 27 |
.PP |
| 28 |
Digital signatures cannot be verified without a public key. |
| 29 |
An ASCII armored public key can be added to the \f[B]rpm\f[R] database |
| 30 |
using \f[B]\-\-import\f[R]. |
| 31 |
An imported public key is carried in a header, and key ring management |
| 32 |
is performed exactly like package management. |
| 33 |
For example, all currently imported public keys can be displayed by: |
| 34 |
.PP |
| 35 |
\f[B]rpm \-q gpg\-pubkey\f[R] |
| 36 |
.PP |
| 37 |
A more convenient way to display them is |
| 38 |
.PP |
| 39 |
\f[B]rpmkeys\f[R] \f[B]\-\-list\f[R] |
| 40 |
.PP |
| 41 |
More details about a specific public key, when imported, can be |
| 42 |
displayed by querying. |
| 43 |
Here\[aq]s information about the Red Hat GPG/DSA key: |
| 44 |
.PP |
| 45 |
\f[B]rpm \-qi gpg\-pubkey\-db42a60e\f[R] |
| 46 |
.PP |
| 47 |
Finally, public keys can be erased after importing just like packages. |
| 48 |
Here\[aq]s how to remove the Red Hat GPG/DSA key: |
| 49 |
.PP |
| 50 |
\f[B]rpmkeys\f[R] \f[B]\-\-delete db42a60e\f[R] |
| 51 |
.PP |
| 52 |
Or alternatively: |
| 53 |
.PP |
| 54 |
\f[B]rpm \-e gpg\-pubkey\-db42a60e\f[R] |
| 55 |
.SH SEE ALSO |
| 56 |
\f[B]popt\f[R](3), \f[B]rpm\f[R](8), \f[B]rpmdb\f[R](8), |
| 57 |
\f[B]rpmsign\f[R](8), \f[B]rpm2cpio\f[R](8), \f[B]rpmbuild\f[R](8), |
| 58 |
\f[B]rpmspec\f[R](8) |
| 59 |
.PP |
| 60 |
\f[B]rpmkeys \-\-help\f[R] \- as rpm supports customizing the options |
| 61 |
via popt aliases it\[aq]s impossible to guarantee that what\[aq]s |
| 62 |
described in the manual matches what\[aq]s available. |
| 63 |
.PP |
| 64 |
\f[B]http://www.rpm.org/ <URL:http://www.rpm.org/>\f[R] |
| 65 |
.SH AUTHORS |
| 66 |
.IP |
| 67 |
.EX |
| 68 |
Marc Ewing <marc\[at]redhat.com> |
| 69 |
Jeff Johnson <jbj\[at]redhat.com> |
| 70 |
Erik Troan <ewt\[at]redhat.com> |
| 71 |
Panu Matilainen <pmatilai\[at]redhat.com> |
| 72 |
.EE |