Thursday, October 23, 2008

Adding packages into a yum server and self-signing them


  • Dump the rpms into a subdirectory
  • gpg --gen-key

  • Edit ~/.rpmmacros:

    %_signature gpg
    %_gpg_name Peter Parente

  • In the RPMS directory:
    rpm --resign *

  • gpg --export --armor key name > RPM-GPG-KEY-mine

  • On both clients and server:
    cp RPM-GPG-KEY-mine /etc/pki/rpm-gpg

  • On server:
    createrepo /my/repo/where/rpms/are

  • Add a+r on files and a+x on directories for serving.
  • On the client:
    rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-mine

No comments: