Re: How can i remove a 'rpm --import'ed key ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 14, 2005, Panu Matilainen wrote:

> On Mon, 2005-03-14 at 15:36 +0100, Matthias Kurz wrote:
> > Hi.
> > 
> > Is there a way to remove particular PGP keys ? When i try to do a
> > "rpm -e gpg-pubkey-xxxxxxxx-xxxxxxxx", it reports that there are multiple
> > matches. Well, there _where_ multiple matches, because i imported the same
> > key several times. But when i do a "rpm --allmatches -e \
> > gpg-pubkey-xxxxxxxx-xxxxxxxx", it actually removes _all_ "gpg-pubkey-*"s.
> > That means not only gpg-pubkey-xxxxxxxx-xxxxxxxx, but also
> > "gpg-pubkey-yyyyyyyy-yyyyyyyy", "gpg-pubkey-zzzzzzzz-zzzzzzzz", ...
> > D'oh !
> 
> Mm.. works for me:
> 
> [root@chip ~]# rpm -q gpg-pubkey|sort
> gpg-pubkey-1ac70ce6-41bebeef
> gpg-pubkey-30c9ecf8-3f9da3f7
> gpg-pubkey-4f2a6fd2-3f9d9d3b
> gpg-pubkey-8df56d05-3e828977
> gpg-pubkey-8df56d05-3e828977
> gpg-pubkey-a109b1ec-3f6e28d5
> gpg-pubkey-db42a60e-37ea5438
> gpg-pubkey-e42d547b-3960bdf1
> [root@chip ~]# rpm -e --allmatches gpg-pubkey-8df56d05-3e828977
> [root@chip ~]# rpm -q gpg-pubkey|sort
> gpg-pubkey-1ac70ce6-41bebeef
> gpg-pubkey-30c9ecf8-3f9da3f7
> gpg-pubkey-4f2a6fd2-3f9d9d3b
> gpg-pubkey-a109b1ec-3f6e28d5
> gpg-pubkey-db42a60e-37ea5438
> gpg-pubkey-e42d547b-3960bdf1

Thanks for reviewing this, Panu !
I hate miracles. Thankfully there is such a thing like a history. There
where only 2 different keys in the database. One key only once and the
other one quiet often. After i could not remove the multiple key, i tried
to remove the single one. This must have worked, but i forgot it, because
it did not solve my problem. Afterwards i found the --allmatches option in
the manpage. It also worked, but because there where only two different
keys, the keylist was empty, afterwards.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
  >> Im prämotorischen Cortex kann jeder ein Held sein. (bdw) <<

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux