问题原文
原帖链接 · carlos · CC BY-SA 3.0
Is there a way to remove or replace an existing GPG signature on an RPM?
I am placing a few obscure RPMs on an internal repo we use for supplementary rhel/centos packages. A few of those RPMs are already signed. I would like to remove those signatures and resign them with a GPG signature we use for our local repo.
已采纳解答
原帖链接 · HBruijn · CC BY-SA 3.0
Simply (re-) sign the packages with your own key...
rpm --addsign package.rpm
The --addsign option generates and inserts new signatures for each package. Any existing signatures will be discarded.
The --resign option generates and appends signatures for the listed packages while preserving the existing signatures.
If you had imported the public key you can validate the new signature
rpm --checksig -v package.rpm
You should see the phrase Good signature from "Your Name" in the output.
AFAIK removing signatures isn't supported.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
