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
|
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:
Thanks for helping |
||||
|
|
|
First you need to find the key id of the key you added. Do this by the command:
It will list all the keys that you have, with each entry looking like this:
Once you have figured out which key to remove, use the command
|
|||||||||||||
|
|
On 16.10 the short key id is no longer shown when you use the list command, but it is actually the last 8 characters of the long hex. So for example the key id for the following key
The key id will be EFE21092 |
|||||||||
|
|
I made a short script to make things easier and using a string instead of the id. You can use my script if the key contains a unique string you know.
I'm sure only the webmin key on my system has I saved it as and run it as
The ouput should be something like
Here is my script:
First I get the upper two lines of my key's block:
If this returns exactly 2 lines (-> got exactly 1 key) I move on:
And finally delete this key and cleanup
|
|||
|
|
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?