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

chenlevy
525
accept rate: 0%




Remove public key from rpm

rpm -e GPG_KEY

Query rpm packages for GPG_KEY

rpm -qa GPG_KEY

http://linux.about.com/od/commands/l/blcmdl8_rpm.htm

link

answered 05 Aug '10, 14:34

rfelsburg's gravatar image

rfelsburg ♦
6061618
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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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

Tags:

×4

Asked: 05 Aug '10, 10:03

Seen: 4,467 times

Last updated: 05 Aug '10, 14:34

powered by OSQA