Friday, November 1, 2013

RPM Signing & Package Updating

I'm recording this info to the blog simply to help me to remember how to do this...again.


  • Generate a GPG key
  • Export a public key
  • Import a public key
  • Sign a package
  • Update the Bedrock repo

Generate a GPG key

$ cd
$ gpg --gen-key

...go through some Q& should already have generated a key for Bedrock

$ gpg --list-keys
pub   2048R/15A3460B 2013-11-16
uid                  OpenBedrock <>
sub   2048R/D58CB0A3 2013-11-16

...remember your passphrase?

Export a public key

$ gpg --export -a 'OpenBedrock' >
$ sudo cp \

Import a public key

$ sudo rpm --import

Sign a package

$ cd
$ rpm --resign ~/rpm/RPMS/noarch/bedrock-2.3.4-3.noarch.rpm

Update a the Bedrock Repo

$ sudo cp ~/rpm/RPMS/noarch/bedrock-2.3.4-3.noarch.rpm \
$ sudo createrepo /var/www/vhosts/bedrock-repos/html/pub/bedrock

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.