Categories
Uncategorized

Remove GPG Keys: Centos 7

List Keys

rpm -qa gpg-pubkey

Find info about GPG Key. Check under Packager and verify if it’s the right key you want to remove

rpm -qi gpg-pubkey-460f3994-55f88609
Name        : gpg-pubkey
Version     : 460f3994
Release     : 55f88609
Architecture: (none)
Install Date: Thu 02 Apr 2020 06:12:34 AM EDT
Group       : Public Keys
Size        : 0
License     : pubkey
Signature   : (none)
Source RPM  : (none)
Build Date  : Tue 15 Sep 2015 04:56:41 PM EDT
Build Host  : localhost
Relocations : (not relocatable)
Packager    : Ceph.com (release key) <security@ceph.com>
Summary     : gpg(Ceph.com (release key) <security@ceph.com>)
Description :
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: rpm-4.11.3 (NSS-3)

Remove GPG Key

rpm -e --allmatches gpg-pubkey-460f3994-55f88609