{"id":4951,"date":"2019-09-21T21:01:23","date_gmt":"2019-09-21T13:01:23","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4951"},"modified":"2019-09-21T21:01:25","modified_gmt":"2019-09-21T13:01:25","slug":"apt-key","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/apt-key","title":{"rendered":"apt-key\u547d\u4ee4 – \u7ba1\u7406APT\u8f6f\u4ef6\u5305\u7684\u5bc6\u94a5"},"content":{"rendered":"\n

apt-key\u547d\u4ee4\u7528\u4e8e\u7ba1\u7406Debian Linux\u7cfb\u7edf\u4e2d\u7684\u8f6f\u4ef6\u5305\u5bc6\u94a5\u3002\u6bcf\u4e2a\u53d1\u5e03\u7684Debian\u8f6f\u4ef6\u5305\u90fd\u662f\u901a\u8fc7\u5bc6\u94a5\u8ba4\u8bc1\u7684\uff0capt-key\u547d\u4ee4\u7528\u6765\u7ba1\u7406Debian\u8f6f\u4ef6\u5305\u5bc6\u94a5\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f:<\/strong> apt-key [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
add filename<\/td>\u4ece\u6587\u4ef6\u4e2d\u52a0\u8f7d\u65b0\u7684\u5bc6\u94a5\u5230\u88ab\u4fe1\u4efb\u7684\u5bc6\u94a5\u4e2d<\/td><\/tr>
del kid<\/td>\u4ece\u88ab\u4fe1\u4efb\u7684\u5bc6\u94a5\u4e2d\u5220\u9664\u6307\u5b9a\u5bc6\u94a5<\/td><\/tr>
export keyed<\/td>\u5c06\u6307\u5b9a\u7684\u5bc6\u94a5\u8f93\u51fa\u5230\u6807\u51c6\u8f93\u51fa\u8bbe\u5907<\/td><\/tr>
exportall<\/td>\u5c06\u6240\u6709\u5bc6\u94a5\u8f93\u51fa\u5230\u6807\u51c6\u8f93\u51fa\u8bbe\u5907<\/td><\/tr>
list<\/td>\u663e\u793a\u88ab\u4fe1\u4efb\u5bc6\u94a5<\/td><\/tr>
finger<\/td>\u663e\u793a\u88ab\u4fe1\u4efb\u5bc6\u94a5\u7684\u6307\u7eb9<\/td><\/tr>
adv<\/td>\u5411pgp\u4f20\u9012\u9ad8\u7ea7\u7279\u6027<\/td><\/tr>
update<\/td>\u901a\u8fc7key\u5305\u6765\u66f4\u65b0key<\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u5217\u51fa\u5df2\u4fdd\u5b58\u5728\u7cfb\u7edf\u4e2dkey\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# apt-key list<\/pre>\n\n\n\n

\u628a\u4e0b\u8f7d\u7684key\u6dfb\u52a0\u5230\u672c\u5730trusted\u6570\u636e\u5e93\u4e2d\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# apt-key add keyname<\/pre>\n\n\n\n

\u4ece\u672c\u5730trusted\u6570\u636e\u5e93\u5220\u9664key\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# apt-key del keyname<\/pre>\n\n\n\n

\u66f4\u65b0\u672c\u5730trusted\u6570\u636e\u5e93\uff0c\u5220\u9664\u8fc7\u671f\u6ca1\u7528\u7684key\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# apt-key update<\/pre>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

apt-key\u547d\u4ee4\u7528\u4e8e\u7ba1\u7406Debian Linux\u7cfb\u7edf\u4e2d\u7684\u8f6f\u4ef6\u5305\u5bc6\u94a5\u3002\u6bcf\u4e2a\u53d1\u5e03\u7684Debian\u8f6f\u4ef6\u5305\u90fd\u662f\u901a\u8fc7\u5bc6\u94a5 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4951"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=4951"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4951\/revisions"}],"predecessor-version":[{"id":5015,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4951\/revisions\/5015"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}