Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I don't need the key in my server's keyring anymore. Is it possible to remove it? I added the key using this command:

 curl http://repo.varnish-cache.org/debian/GPG-key.txt | apt-key add -

Thanks for helping

share|improve this question

1 Answer 1

up vote 25 down vote accepted

First you need to find the key id of the key you added. Do this by the command:

sudo apt-key list.

It will list all the keys that you have, with each entry looking like this:

pub   1024R/B455BEF0 2010-07-29
uid                  Launchpad clicompanion-nightlies

Once you have figured out which key to remove, use the command sudo apt-key del <keyid> where is replaced with the actual keyid of the key you want to remove from your keyring.

nits@nits-excalibur:~$ sudo apt-key del B455BEF0
[sudo] password for nits: 
OK
nits@nits-excalibur:~$ apt-key list | grep clicompan
nits@nits-excalibur:~$ 

As you can see the key gets removed :)

share|improve this answer
    
thank you for helping me. –  Raymond Feb 24 '12 at 20:13
    
@Raymond No problemo :) –  nitstorm Feb 24 '12 at 20:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.