Sunday, April 4, 2010

Signing RPM Packages

I encounted only one error when completing this exercise. Below are the commands in order that were executed:

1. gpg --gen-key

2. the lines below were added to ~/.rpmmacros
%_signature gpg
%_gpg_name [email address] (added your email address)

3. gpg --export --armor [email address] > [file] (file of your choice)

4. Create a directory in
Put your package into that directory

5. Sign the package with the command below
rpm --addsign yourrpmpackage.rpm

6. Create a repo directory
createrepo .

After executing all the commands below my package Xye can be dowloaded here.

When generating a key keep note of all your answers.

No comments:

Post a Comment