For some reason I had a few copies of the same GPG key in my RPM key store and removing them was tricky.
Normally, you list your key using rpm -qa gpg-* and can remove them using rpm -e gpg-pubkey-12345678. Just like anything installed with rpm, for that matter. But what if you have multiple keys? You'll get multiple matches...
Easy! Just use rpm -e --allmatches gpg-pubkey-12345678. :)
Source: Red Hat archives
Normally, you list your key using rpm -qa gpg-* and can remove them using rpm -e gpg-pubkey-12345678. Just like anything installed with rpm, for that matter. But what if you have multiple keys? You'll get multiple matches...
Easy! Just use rpm -e --allmatches gpg-pubkey-12345678. :)
Source: Red Hat archives
Comments