THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
No Format |
---|
gpg --import YOUR_CODE_SIGNING_SECRET_KEY echo > ~/.rpmmacros <<__EOT__ "%_gpg_name YOUR_CODE_SIGNING_KEY_ID __EOT__ " > ~/.rpmmacros yum install -y rpm-sign createrepo |
...
No Format |
---|
cd /tmp
# Sign all RPM packages (This step required to input passphrase, so don't copy and paste the entire script here)
rpm --addsign `find centos-7 -name \*rpm`
# Recreate the metadata for repository
createrepo centos-7
# Armor the metadata
gpg --detach-sign --armor centos-7/repodata/repomd.xml |
...