Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
256
rated 0 times [  256] [ 0]  / answers: 1 / hits: 284108  / 1 Year ago, thu, november 17, 2022, 5:19:23

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


More From » apt

 Answers
1

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 <keyid> is replaced with the actual keyid of the key you want to remove from your keyring.



$ sudo apt-key del B455BEF0
$ apt-key list | grep clicompan
$

[#40189] Friday, November 18, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fulpu

Total Points: 116
Total Questions: 118
Total Answers: 104

Location: Solomon Islands
Member since Fri, Oct 8, 2021
3 Years ago
fulpu questions
Fri, Apr 1, 22, 08:36, 2 Years ago
Wed, Mar 16, 22, 15:25, 2 Years ago
Wed, Aug 24, 22, 22:59, 2 Years ago
Tue, Dec 20, 22, 22:33, 1 Year ago
;