1RPMSIGN(8)                  System Manager's Manual                 RPMSIGN(8)
2
3
4

NAME

6       rpmsign - RPM Package Signing
7

SYNOPSIS

9       rpm --addsign|--resign PACKAGE_FILE ...
10
11       rpm --delsign PACKAGE_FILE ...
12
13

DESCRIPTION

15       Both of the --addsign and --resign options generate and insert new sig‐
16       natures for each package PACKAGE_FILE  given,  replacing  any  existing
17       signatures.  There  are two options for historical reasons, there is no
18       difference in behavior currently.
19
20       rpm --delsign PACKAGE_FILE ...
21
22
23       Delete all signatures from each package PACKAGE_FILE given.
24
25
26   USING GPG TO SIGN PACKAGES
27       In order to sign packages using GPG, rpm must be configured to run  GPG
28       and  be  able to find a key ring with the appropriate keys. By default,
29       rpm uses the same conventions as GPG to  find  key  rings,  namely  the
30       $GNUPGHOME  environment  variable.   If  your key rings are not located
31       where GPG expects them to be, you will  need  to  configure  the  macro
32       %_gpg_path to be the location of the GPG key rings to use.  If you want
33       to be able to sign packages you create yourself, you also need to  cre‐
34       ate  your own public and secret key pair (see the GPG manual). You will
35       also need to configure the rpm macros
36
37       %_gpg_name
38              The name of the "user" whose key you wish to use  to  sign  your
39              packages.
40
41       For  example,  to be able to use GPG to sign packages as the user "John
42       Doe <jdoe@foo.com>" from the key rings located in  /etc/rpm/.gpg  using
43       the executable /usr/bin/gpg you would include
44
45       %_gpg_path /etc/rpm/.gpg
46       %_gpg_name John Doe <jdoe@foo.com>
47       %__gpg /usr/bin/gpg
48
49       in  a macro configuration file. Use /etc/rpm/macros for per-system con‐
50       figuration and ~/.rpmmacros for per-user configuration. Typically  it's
51       sufficient to set just %_gpg_name.
52
53

SEE ALSO

55       popt(3),
56       rpm(8),
57       rpmdb(8),
58       rpmkeys(8),
59       rpm2cpio(8),
60       rpmbuild(8),
61       rpmspec(8),
62
63       rpmsign  --help  -  as  rpm  supports  customizing the options via popt
64       aliases it's impossible to guarantee that what's described in the  man‐
65       ual matches what's available.
66
67
68       http://www.rpm.org/ <URL:http://www.rpm.org/>
69

AUTHORS

71       Marc Ewing <marc@redhat.com>
72       Jeff Johnson <jbj@redhat.com>
73       Erik Troan <ewt@redhat.com>
74       Panu Matilainen <pmatilai@redhat.com>
75
76
77
78                                 Red Hat, Inc                       RPMSIGN(8)
Impressum