Re: Error on Buster while signing rpms
Le 19/06/2019 à 20:29, john doe a écrit :
> On 6/19/2019 8:10 PM, Ulf Volmer wrote:
>> On 19.06.19 17:03, john doe wrote:
>>> Hi, I'm trying to gpg sign rpms on Debian Buster but I'm getting the
>>> following:
>>>
>>> $ rpm --resign *.rpm
>>> *.rpm:
>>> error: Could not exec gpg: No such file or directory
>>
>> Pass --define "__gpg /usr/bin/gpg" to you rpm command. Works for me on
>> sid. Or add this (and you gpg key settings) to your ~/.rpmmacros.
>>
>
> Thank you, it is also working on Buster.
>
> --
> John Doe
>
>
Hello,
there are more details on how to configure gpg for signing rpm in the
rpmsign(8) manpage. I quote:
"USING GPG TO SIGN PACKAGES
In order to sign packages using GPG, rpm must be configured to
run GPG and be able to find a key ring with the appropriate keys. By
default, rpm uses the same conventions as GPG to find key
rings, namely the $GNUPGHOME environment variable. If your key rings
are not
located where GPG expects them to be, you will need to configure
the macro %_gpg_path to be the location of the GPG key rings to use. If
you want to be able to sign packages you create yourself, you
also need to create your own public and secret key pair (see the GPG
manual).
You will also need to configure the rpm macros
%_gpg_name
The name of the "user" whose key you wish to use to sign
your packages.
For example, to be able to use GPG to sign packages as the user
"John Doe <jdoe@foo.com>" from the key rings located in /etc/rpm/.gpg using
the executable /usr/bin/gpg you would include
%_gpg_path /etc/rpm/.gpg
%_gpg_name John Doe <jdoe@foo.com>
%__gpg /usr/bin/gpg
in a macro configuration file. Use /etc/rpm/macros for per-system
configuration and ~/.rpmmacros for per-user configuration. Typically it's
sufficient to set just %_gpg_name.
"
Reply to: