{"id":51385,"date":"2024-10-08T18:10:17","date_gmt":"2024-10-08T10:10:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/51385\/"},"modified":"2024-11-14T10:43:28","modified_gmt":"2024-11-14T02:43:28","slug":"ubuntu-16-04-%e4%b8%ad%e4%bd%bf%e7%94%a8-apt-fast-%e5%85%b7%e9%ab%94%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/51385\/","title":{"rendered":"Ubuntu 16.04 \u4e2d\u4f7f\u7528 apt-fast \u5177\u9ad4\u65b9\u6cd5"},"content":{"rendered":"<h1 id=\"ubuntu-16-04-%e4%b8%ad%e4%bd%bf%e7%94%a8-apt-fast-%e5%85%b7%e9%ab%94%e6%96%b9%e6%b3%95-aDFKsiBBPi\">Ubuntu 16.04 \u4e2d\u4f7f\u7528 apt-fast \u5177\u9ad4\u65b9\u6cd5<\/h1>\n<p>\u5728 Ubuntu 16.04 \u7cfb\u7d71\u4e2d\uff0c\u4f7f\u7528 <code>apt<\/code> \u9032\u884c\u8edf\u4ef6\u5305\u7684\u5b89\u88dd\u548c\u66f4\u65b0\u662f\u975e\u5e38\u5e38\u898b\u7684\u3002\u7136\u800c\uff0c<code>apt<\/code> \u7684\u4e0b\u8f09\u901f\u5ea6\u6709\u6642\u53ef\u80fd\u6703\u53d7\u5230\u9650\u5236\uff0c\u7279\u5225\u662f\u5728\u7db2\u7d61\u74b0\u5883\u4e0d\u4f73\u7684\u60c5\u6cc1\u4e0b\u3002\u70ba\u4e86\u89e3\u6c7a\u9019\u500b\u554f\u984c\uff0c<code>apt-fast<\/code> \u61c9\u904b\u800c\u751f\u3002\u9019\u662f\u4e00\u500b\u7528\u65bc\u52a0\u901f <code>apt<\/code> \u4e0b\u8f09\u7684\u5de5\u5177\uff0c\u901a\u904e\u4f7f\u7528\u591a\u7dda\u7a0b\u4e0b\u8f09\u4f86\u63d0\u9ad8\u901f\u5ea6\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u5728 Ubuntu 16.04 \u4e2d\u5b89\u88dd\u548c\u4f7f\u7528 <code>apt-fast<\/code>\u3002<\/p>\n<h2 id=\"%e5%ae%89%e8%a3%9d-apt-fast-aDFKsiBBPi\">\u5b89\u88dd apt-fast<\/h2>\n<p>\u8981\u5b89\u88dd <code>apt-fast<\/code>\uff0c\u9996\u5148\u9700\u8981\u78ba\u4fdd\u7cfb\u7d71\u7684\u5305\u5217\u8868\u662f\u6700\u65b0\u7684\u3002\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u4f86\u66f4\u65b0\u5305\u5217\u8868\uff1a<\/p>\n<pre><code>sudo apt update<\/code><\/pre>\n<p>\u63a5\u4e0b\u4f86\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88dd <code>apt-fast<\/code>\uff1a<\/p>\n<pre><code>sudo apt install apt-fast<\/code><\/pre>\n<p>\u5728\u5b89\u88dd\u904e\u7a0b\u4e2d\uff0c\u7cfb\u7d71\u6703\u63d0\u793a\u4f60\u9078\u64c7\u4e0b\u8f09\u7ba1\u7406\u5668\u3002\u4f60\u53ef\u4ee5\u9078\u64c7 <code>wget<\/code> \u6216 <code>aria2<\/code>\u3002\u9019\u88e1\u63a8\u85a6\u4f7f\u7528 <code>aria2<\/code>\uff0c\u56e0\u70ba\u5b83\u652f\u6301\u591a\u7dda\u7a0b\u4e0b\u8f09\uff0c\u80fd\u5920\u986f\u8457\u63d0\u9ad8\u4e0b\u8f09\u901f\u5ea6\u3002<\/p>\n<h2 id=\"%e9%85%8d%e7%bd%ae-apt-fast-aDFKsiBBPi\">\u914d\u7f6e apt-fast<\/h2>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u4f60\u53ef\u4ee5\u901a\u904e\u7de8\u8f2f\u914d\u7f6e\u6587\u4ef6\u4f86\u9032\u4e00\u6b65\u512a\u5316 <code>apt-fast<\/code> \u7684\u8a2d\u7f6e\u3002\u914d\u7f6e\u6587\u4ef6\u4f4d\u65bc <code>\/etc\/apt-fast.conf<\/code>\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6253\u958b\u8a72\u6587\u4ef6\uff1a<\/p>\n<pre><code>sudo nano \/etc\/apt-fast.conf<\/code><\/pre>\n<p>\u5728\u9019\u500b\u6587\u4ef6\u4e2d\uff0c\u4f60\u53ef\u4ee5\u8a2d\u7f6e\u4ee5\u4e0b\u5e7e\u500b\u53c3\u6578\uff1a<\/p>\n<ul>\n<li><strong>DOWNLOADBEFORE:<\/strong> \u8a2d\u7f6e\u70ba <code>1<\/code> \u4ee5\u5728\u4e0b\u8f09\u4e4b\u524d\u6aa2\u67e5\u53ef\u7528\u7684\u93e1\u50cf\u3002<\/li>\n<li><strong>MAXNUM:<\/strong> \u8a2d\u7f6e\u540c\u6642\u4e0b\u8f09\u7684\u6700\u5927\u6578\u91cf\uff0c\u9ed8\u8a8d\u70ba <code>5<\/code>\u3002<\/li>\n<li><strong>USE_WGET:<\/strong> \u5982\u679c\u4f60\u9078\u64c7\u4f7f\u7528 <code>wget<\/code>\uff0c\u5247\u8a2d\u7f6e\u70ba <code>1<\/code>\uff0c\u5426\u5247\u8a2d\u7f6e\u70ba <code>0<\/code>\u3002<\/li>\n<li><strong>USE_ARIA2:<\/strong> \u5982\u679c\u4f60\u9078\u64c7\u4f7f\u7528 <code>aria2<\/code>\uff0c\u5247\u8a2d\u7f6e\u70ba <code>1<\/code>\u3002<\/li>\n<\/ul>\n<p>\u5b8c\u6210\u8a2d\u7f6e\u5f8c\uff0c\u6309 <code>Ctrl + X<\/code>\uff0c\u7136\u5f8c\u6309 <code>Y<\/code> \u4fdd\u5b58\u4e26\u9000\u51fa\u3002<\/p>\n<h2 id=\"%e4%bd%bf%e7%94%a8-apt-fast-%e9%80%b2%e8%a1%8c%e5%ae%89%e8%a3%9d%e5%92%8c%e6%9b%b4%e6%96%b0-aDFKsiBBPi\">\u4f7f\u7528 apt-fast \u9032\u884c\u5b89\u88dd\u548c\u66f4\u65b0<\/h2>\n<p>\u73fe\u5728\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 <code>apt-fast<\/code> \u4f86\u5b89\u88dd\u548c\u66f4\u65b0\u8edf\u4ef6\u5305\u4e86\u3002\u4f7f\u7528\u65b9\u6cd5\u8207 <code>apt<\/code> \u985e\u4f3c\uff0c\u53ea\u9700\u5c07 <code>apt<\/code> \u66ff\u63db\u70ba <code>apt-fast<\/code> \u5373\u53ef\u3002\u4f8b\u5982\uff0c\u8981\u5b89\u88dd <code>git<\/code>\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>sudo apt-fast install git<\/code><\/pre>\n<p>\u540c\u6a23\u5730\uff0c\u66f4\u65b0\u7cfb\u7d71\u4e2d\u7684\u6240\u6709\u5305\u4e5f\u53ef\u4ee5\u4f7f\u7528\uff1a<\/p>\n<pre><code>sudo apt-fast upgrade<\/code><\/pre>\n<h2 id=\"%e7%b8%bd%e7%b5%90-aDFKsiBBPi\">\u7e3d\u7d50<\/h2>\n<p>\u901a\u904e\u4f7f\u7528 <code>apt-fast<\/code>\uff0c\u4f60\u53ef\u4ee5\u986f\u8457\u63d0\u9ad8\u5728 Ubuntu 16.04 \u4e2d\u4e0b\u8f09\u548c\u5b89\u88dd\u8edf\u4ef6\u5305\u7684\u901f\u5ea6\u3002\u9019\u5c0d\u65bc\u9700\u8981\u983b\u7e41\u5b89\u88dd\u548c\u66f4\u65b0\u8edf\u4ef6\u7684\u7528\u6236\u4f86\u8aaa\uff0c\u7121\u7591\u662f\u4e00\u500b\u975e\u5e38\u5be6\u7528\u7684\u5de5\u5177\u3002\u5982\u679c\u4f60\u6b63\u5728\u5c0b\u627e\u9ad8\u6548\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u9069\u5408\u4e0d\u540c\u9700\u6c42\u7684\u7528\u6236\u3002\u7121\u8ad6\u662f <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u9084\u662f\u5176\u4ed6\u985e\u578b\u7684 <a href=\"https:\/\/server.hk\">\u4f3a\u670d\u5668<\/a>\uff0c\u90fd\u80fd\u6eff\u8db3\u4f60\u7684\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b78\u7fd2\u5982\u4f55\u5728 Ubuntu 16.04 \u4e2d\u4f7f\u7528 apt-fast \u52a0\u901f\u5305\u7ba1\u7406\uff0c\u63d0\u5347\u4e0b\u8f09\u901f\u5ea6\uff0c\u7c21\u5316\u5b89\u88dd\u904e\u7a0b\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-51385","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/51385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=51385"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/51385\/revisions"}],"predecessor-version":[{"id":51386,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/51385\/revisions\/51386"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=51385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=51385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=51385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}