To add a trusted key to the rpm package manager I am told to use the command:

rpm --import GPG_KEY

How can view rpm's trusted keys and how can I remove a trusted key?

asked 05 Aug '10, 10:03

chenlevy's gravatar image

accept rate: 0%

Remove public key from rpm

rpm -e GPG_KEY

Query rpm packages for GPG_KEY

rpm -qa GPG_KEY


answered 05 Aug '10, 14:34

rfelsburg's gravatar image

rfelsburg ♦
accept rate: 25%

Well, almost: rpm --allmatches -e gpg-pubkey-<gpg-id> and rpm -qa gpgp-pubkey-* did worked for me.

(08 Aug '10, 09:26) chenlevy

Yea, those were examples based off of the GPG_KEY in your post. I didn't know exactly the key name you were using so I was just trying to keep with the info in your post.

--allmatches simply removes all version of the package, not just the one you specify.

(08 Aug '10, 21:07) rfelsburg ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 05 Aug '10, 10:03

Seen: 4,467 times

Last updated: 05 Aug '10, 14:34

powered by OSQA