{"id":93875,"date":"2024-04-21T02:36:09","date_gmt":"2024-04-20T18:36:09","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=93875"},"modified":"2024-04-21T02:36:09","modified_gmt":"2024-04-20T18:36:09","slug":"easy-apt","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/easy-apt.html","title":{"rendered":"\u521b\u5efa\u4e00\u4e2a\u7b80\u6613 APT \u4ed3\u5e93 \u5feb\u901f\u6784\u5efa\u7b80\u6613APT\u4ed3\u5e93"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u4f5c\u4e3a\u6211\u5de5\u4f5c\u7684\u4e00\u90e8\u5206\uff0c\u6211\u6240\u7ef4\u62a4\u7684 PATHspider \u4f9d\u8d56\u4e8e cURL \u548c PycURL\u4e2d\u7684\u4e00\u4e9b\u521a\u521a\u88ab\u5408\u5e76\u6216\u4ecd\u5728\u7b49\u5f85\u88ab\u5408\u5e76\u7684\u529f\u80fd\u3002\u6211\u9700\u8981\u6784\u5efa\u4e00\u4e2a\u5305\u542b\u8fd9\u4e9b Debian \u5305\u7684 Docker \u5bb9\u5668\uff0c\u6240\u4ee5\u6211\u9700\u8981\u5feb\u901f\u6784\u5efa\u4e00\u4e2a APT \u4ed3\u5e93\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/a><\/p>\n

\u4f5c\u4e3a\u6211\u5de5\u4f5c\u7684\u4e00\u90e8\u5206\uff0c\u6211\u6240\u7ef4\u62a4\u7684 PATHspider \u4f9d\u8d56\u4e8e cURL \u548c PycURL\u4e2d\u7684\u4e00\u4e9b\u521a\u521a\u88ab<\/a>\u5408\u5e76\u6216\u4ecd\u5728\u7b49\u5f85\u88ab\u5408\u5e76\u7684\u529f\u80fd\u3002\u6211\u9700\u8981\u6784\u5efa\u4e00\u4e2a\u5305\u542b\u8fd9\u4e9b Debian \u5305\u7684 Docker \u5bb9\u5668\uff0c\u6240\u4ee5\u6211\u9700\u8981\u5feb\u901f\u6784\u5efa\u4e00\u4e2a APT \u4ed3\u5e93\u3002<\/p>\n

Debian \u4ed3\u5e93\u672c\u8d28\u4e0a\u53ef\u4ee5\u770b\u4f5c\u662f\u4e00\u4e2a\u9759\u6001\u7684\u7f51\u7ad9\uff0c\u800c\u4e14\u5185\u5bb9\u662f\u7ecf\u8fc7 GPG \u7b7e\u540d\u7684\uff0c\u6240\u4ee5\u5b83\u4e0d\u4e00\u5b9a\u9700\u8981\u6258\u7ba1\u5728\u67d0\u4e2a\u53ef\u4fe1\u4efb\u7684\u5730\u65b9\uff08\u9664\u975e\u53ef\u7528\u6027\u5bf9\u4f60\u7684\u7a0b\u5e8f\u6765\u8bf4\u662f\u81f3\u5173\u91cd\u8981\u7684\uff09\u3002\u6211\u5728 Netlify\uff08\u4e00\u4e2a\u9759\u6001\u7684\u7f51\u7ad9\u4e3b\u673a\uff09\u4e0a\u6258\u7ba1\u6211\u7684\u535a\u5ba2\uff0c\u6211\u8ba4\u4e3a\u5b83\u5f88\u5408\u9002\u8fd9\u79cd\u60c5\u51b5\u3002\u4ed6\u4eec\u4e5f\u652f\u6301\u5f00\u6e90\u9879\u76ee\u3002<\/p>\n

\u4f60\u53ef\u4ee5\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u5b89\u88c5 netlify \u7684 CLI \u5de5\u5177\uff1a<\/p>\n

sudo apt install npm\r\nsudo npm install -g netlify-cli\r\n<\/pre>\n

\u8bbe\u7f6e\u4ed3\u5e93\u7684\u57fa\u672c\u6b65\u9aa4\u662f\uff1a<\/p>\n

mkdir repository\r\ncp \/path\/to\/*.deb repository\/\r\ncd repository\r\napt-ftparchive packages . > Packages\r\napt-ftparchive release . > Release\r\ngpg --clearsign -o InRelease Release\r\nnetlify deploy\r\n<\/pre>\n

\u5f53\u4f60\u5b8c\u6210\u8fd9\u4e9b\u6b65\u9aa4\u540e\uff0c\u5e76\u5728 Netlify \u4e0a\u521b\u5efa\u4e86\u4e00\u4e2a\u65b0\u7684\u7f51\u7ad9\uff0c\u4f60\u4e5f\u53ef\u4ee5\u901a\u8fc7 Web \u754c\u9762\u6765\u7ba1\u7406\u8fd9\u4e2a\u7f51\u7ad9\u3002\u4f60\u53ef\u80fd\u60f3\u8981\u505a\u7684\u4e00\u4e9b\u4e8b\u60c5\u662f\u4e3a\u4f60\u7684\u4ed3\u5e93\u8bbe\u7f6e\u81ea\u5b9a\u4e49\u57df\u540d\uff0c\u6216\u8005\u4f7f\u7528 Let's Encrypt \u542f\u7528 HTTPS\u3002\uff08\u5982\u679c\u4f60\u6253\u7b97\u542f\u7528 HTTPS\uff0c\u8bf7\u786e\u4fdd\u547d\u4ee4\u4e2d\u6709 apt-transport-https\u3002\uff09
\n\u8981\u5c06\u8fd9\u4e2a\u4ed3\u5e93\u6dfb\u52a0\u5230\u4f60\u7684 apt \u6e90\uff1a<\/p>\n

gpg --export -a YOURKEYID | sudo apt-key add -\r\necho \"deb https:\/\/SUBDOMAIN.netlify.com\/ \/\" | sudo tee -a \/etc\/apt\/sources.list\r\nsudo apt update\r\n<\/pre>\n

\u4f60\u4f1a\u53d1\u73b0\u8fd9\u4e9b\u8f6f\u4ef6\u5305\u662f\u53ef\u4ee5\u5b89\u88c5\u7684\u3002\u6ce8\u610f\u4e0b APT pinnng\uff0c\u56e0\u4e3a\u4f60\u53ef\u80fd\u4f1a\u53d1\u73b0\uff0c\u6839\u636e\u4f60\u7684\u7b56\u7565\uff0c\u4ed3\u5e93\u4e0a\u7684\u8f83\u65b0\u7248\u672c\u5b9e\u9645\u4e0a\u5e76\u4e0d\u662f\u9996\u9009\u7248\u672c\u3002<\/p>\n

\u66f4\u65b0<\/strong>\uff1a\u5982\u679c\u4f60\u60f3\u8981\u4e00\u4e2a\u66f4\u9002\u5408\u5e73\u65f6\u4f7f\u7528\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u8bf7\u53c2\u8003 repropro\u3002\u5982\u679c\u4f60\u60f3\u8ba9\u6700\u7ec8\u7528\u6237\u5c06\u4f60\u7684 apt \u4ed3\u5e93\u4f5c\u4e3a\u7b2c\u4e09\u65b9\u4ed3\u5e93\u6dfb\u52a0\u5230\u4ed6\u4eec\u7684\u7cfb\u7edf\u4e2d\uff0c\u8bf7\u67e5\u770b Debian wiki \u4e0a\u7684\u8fd9\u4e2a\u9875\u9762\uff0c\u5176\u4e2d\u5305\u542b\u5173\u4e8e\u5982\u4f55\u6307\u5bfc\u7528\u6237\u4f7f\u7528\u4f60\u7684\u4ed3\u5e93\u3002<\/p>\n

\u66f4\u65b0 2<\/strong>\uff1a\u6709\u4e00\u4f4d\u8bc4\u8bba\u8005\u6307\u51fa\u7528 aptly\uff0c\u5b83\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u529f\u80fd\uff0c\u5e76\u6d88\u9664\u4e86 repropro \u7684\u4e00\u4e9b\u9650\u5236\u3002\u6211\u4ece\u6765\u6ca1\u6709\u7528\u8fc7 aptly\uff0c\u6240\u4ee5\u4e0d\u80fd\u8bc4\u8bba\u5177\u4f53\u7ec6\u8282\uff0c\u4f46\u4ece\u7f51\u7ad9\u770b\u6765\uff0c\u8fd9\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u5de5\u5177\u3002<\/p>\n


\n

via: https:\/\/iain.learmonth.me\/blog\/2017\/2017w383\/<\/a><\/p>\n

\u4f5c\u8005\uff1aIain R. Learmonth<\/a> \u8bd1\u8005\uff1ageekpi<\/a> \u6821\u5bf9\uff1awxy<\/a><\/p>\n

\u672c\u6587\u7531 LCTT<\/a> \u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a> \u8363\u8a89\u63a8\u51fa<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttps:\/\/linux.cn\/article-9281-1.html<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/easy-apt.html<\/a>\u7f16\u8f91\uff1a\u674e\u5e05\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb \u4f5c\u4e3a\u6211\u5de5\u4f5c\u7684\u4e00\u90e8\u5206\uff0c\u6211\u6240\u7ef4\u62a4\u7684 PATHspider \u4f9d\u8d56\u4e8e cURL \u548c PycURL\u4e2d\u7684\u4e00\u4e9b\u521a\u521a\u88ab\u5408 […]<\/p>\n","protected":false},"author":63,"featured_media":93882,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-93875","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/93875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=93875"}],"version-history":[{"count":7,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/93875\/revisions"}],"predecessor-version":[{"id":94028,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/93875\/revisions\/94028"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/93882"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=93875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=93875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=93875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}