{"id":203160,"date":"2020-10-26T10:31:11","date_gmt":"2020-10-26T02:31:11","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=203160"},"modified":"2020-10-20T10:32:26","modified_gmt":"2020-10-20T02:32:26","slug":"linux-heihua-work","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-heihua-work.html","title":{"rendered":"\u4ec0\u4e48\u662fLinux\u5305\u7ba1\u7406\u5668\uff0c\u5b83\u662f\u5982\u4f55\u5de5\u4f5c\u7684\uff1f"},"content":{"rendered":"
\n\n\n\n
\u5bfc\u8bfb<\/td>\n\u5728\u8fd9\u7bc7 Linux \u9ed1\u8bdd\u89e3\u91ca\u4e2d\uff0c\u4f60\u5c06\u4e86\u89e3 Linux \u4e2d\u7684\u6253\u5305\u548c\u5305\u7ba1\u7406\u5668\u3002\u4f60\u5c06\u4e86\u89e3\u4ec0\u4e48\u662f\u5305\uff0c\u4ec0\u4e48\u662f\u5305\u7ba1\u7406\u5668\uff0c\u5b83\u4eec\u662f\u5982\u4f55\u5de5\u4f5c\u7684\uff0c\u4ee5\u53ca\u6709\u4ec0\u4e48\u5305\u7ba1\u7406\u5668\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n
\n

Linux \u53d1\u884c\u7248\u4e4b\u95f4\u6709\u4ec0\u4e48\u4e0d\u540c \u7684\u8981\u70b9\u4e4b\u4e00\u662f\u5305\u7ba1\u7406\u3002\u5728\u8fd9\u7bc7 Linux \u9ed1\u8bdd\u89e3\u91ca\u4e2d\uff0c\u4f60\u5c06\u4e86\u89e3 Linux \u4e2d\u7684\u6253\u5305\u548c\u5305\u7ba1\u7406\u5668\u3002\u4f60\u5c06\u4e86\u89e3\u4ec0\u4e48\u662f\u5305\uff0c\u4ec0\u4e48\u662f\u5305\u7ba1\u7406\u5668\uff0c\u5b83\u4eec\u662f\u5982\u4f55\u5de5\u4f5c\u7684\uff0c\u4ee5\u53ca\u6709\u4ec0\u4e48\u5305\u7ba1\u7406\u5668\u3002<\/p>\n

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

\u4ec0\u4e48\u662f\u5305\u7ba1\u7406\u5668?<\/strong><\/strong><\/div>\n

\u7b80\u5355\u6765\u8bf4\uff0c\u201c \u5305\u7ba1\u7406\u5668(package manager)\u201d(\u6216\u201c\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u201d)\u662f\u4e00\u79cd\u5de5\u5177\uff0c\u5b83\u5141\u8bb8\u7528\u6237\u5728\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5b89\u88c5\u3001\u5220\u9664\u3001\u5347\u7ea7\u3001\u914d\u7f6e\u548c\u7ba1\u7406\u8f6f\u4ef6\u5305\u3002\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u53ef\u4ee5\u662f\u50cf\u201c\u8f6f\u4ef6\u4e2d\u5fc3\u201d\u8fd9\u6837\u7684\u56fe\u5f62\u5316\u5e94\u7528\uff0c\u4e5f\u53ef\u4ee5\u662f\u50cf apt-get \u6216 pacman \u8fd9\u6837\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002<\/p>\n

\u4f60\u4f1a\u53d1\u73b0\u6211\u7ecf\u5e38\u5728\u6559\u7a0b\u548c\u6587\u7ae0\u4e2d\u4f7f\u7528\u201c\u5305\u201d\u8fd9\u4e2a\u8bcd\u3002\u8981\u4e86\u89e3\u5305\u7ba1\u7406\u5668\uff0c\u4f60\u5fc5\u987b\u4e86\u89e3\u4ec0\u4e48\u662f\u5305\u3002<\/p>\n

\u4ec0\u4e48\u662f\u5305?<\/strong><\/strong><\/span><\/div>\n

\u4e00\u4e2a\u201c \u5305(package)\u201d(\u6216\u201c\u8f6f\u4ef6\u5305\u201d)\u901a\u5e38\u6307\u7684\u662f\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\uff0c\u5b83\u53ef\u4ee5\u662f\u4e00\u4e2a GUI \u5e94\u7528\u7a0b\u5e8f\u3001\u547d\u4ee4\u884c\u5de5\u5177\u6216(\u5176\u4ed6\u8f6f\u4ef6\u7a0b\u5e8f\u9700\u8981\u7684)\u8f6f\u4ef6\u5e93\u3002\u5305\u672c\u8d28\u4e0a\u662f\u4e00\u4e2a\u5b58\u6863\u6587\u4ef6\uff0c\u5305\u542b\u4e8c\u8fdb\u5236\u53ef\u6267\u884c\u6587\u4ef6\u3001\u914d\u7f6e\u6587\u4ef6\uff0c\u6709\u65f6\u8fd8\u5305\u542b\u4f9d\u8d56\u5173\u7cfb\u7684\u4fe1\u606f\u3002<\/p>\n

\u5728\u65e7\u65f6\u4ee3\uff0c \u8f6f\u4ef6\u66fe\u7ecf\u662f\u4ece\u5b83\u7684\u6e90\u4ee3\u7801\u5b89\u88c5\u7684 \u3002\u4f60\u4f1a\u53c2\u8003\u4e00\u4e2a\u6587\u4ef6(\u901a\u5e38\u547d\u540d\u4e3a README)\uff0c\u770b\u770b\u5b83\u9700\u8981\u4ec0\u4e48\u8f6f\u4ef6\u7ec4\u4ef6\u3001\u4e8c\u8fdb\u5236\u6587\u4ef6\u7684\u4f4d\u7f6e\u3002\u5b83\u901a\u5e38\u5305\u62ec\u4e00\u4e2a\u914d\u7f6e\u811a\u672c\u6216 Makefile\u3002\u4f60\u5fc5\u987b\u81ea\u5df1\u7f16\u8bd1\u8be5\u8f6f\u4ef6\u6216\u81ea\u5df1\u5904\u7406\u6240\u6709\u7684\u4f9d\u8d56\u5173\u7cfb(\u6709\u4e9b\u8f6f\u4ef6\u9700\u8981\u5b89\u88c5\u5176\u4ed6\u8f6f\u4ef6)\u3002<\/p>\n

\u4e3a\u4e86\u6446\u8131\u8fd9\u79cd\u590d\u6742\u6027\uff0cLinux \u53d1\u884c\u7248\u521b\u5efa\u4e86\u81ea\u5df1\u7684\u6253\u5305\u683c\u5f0f\uff0c\u4e3a\u7ec8\u7aef\u7528\u6237\u63d0\u4f9b\u968f\u65f6\u53ef\u7528\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6(\u9884\u7f16\u8bd1\u8f6f\u4ef6)\uff0c\u4ee5\u4fbf\u5b89\u88c5\u8f6f\u4ef6\uff0c\u540c\u65f6\u63d0\u4f9b\u4e00\u4e9b \u5143\u6570\u636e (\u7248\u672c\u53f7\u3001\u63cf\u8ff0)\u548c\u4f9d\u8d56\u5173\u7cfb\u3002<\/p>\n

\u8fd9\u5c31\u50cf\u70e4\u86cb\u7cd5\u4e0e\u4e70\u86cb\u7cd5\u4e00\u6837\u3002<\/p>\n

\"\"<\/a><\/center>\u5927\u7ea6\u5728\u4e0a\u4e16\u7eaa 90 \u5e74\u4ee3\u4e2d\u671f\uff0cDebian \u521b\u5efa\u4e86 DEB \u6253\u5305\u683c\u5f0f(.deb)\uff0cRed Hat Linux \u521b\u5efa\u4e86 RPM(Red Hat Package Manager \u7684\u7f29\u5199)\u6253\u5305\u7cfb\u7edf(.rpm)\u3002\u7f16\u8bd1\u6e90\u4ee3\u7801\u7684\u65b9\u5f0f\u4ecd\u7136\u5b58\u5728\uff0c\u4f46\u73b0\u5728\u662f\u53ef\u9009\u7684\u3002<\/p>\n

\u8981\u4e0e\u6253\u5305\u7cfb\u7edf\u4ea4\u4e92\u6216\u4f7f\u7528\u6253\u5305\u7cfb\u7edf\uff0c\u4f60\u9700\u8981\u4e00\u4e2a\u5305\u7ba1\u7406\u5668\u3002<\/p>\n

\u5305\u7ba1\u7406\u5668\u662f\u5982\u4f55\u5de5\u4f5c\u7684?<\/strong><\/strong><\/span><\/div>\n

\u8bf7\u8bb0\u4f4f\uff0c\u5305\u7ba1\u7406\u5668\u662f\u4e00\u4e2a\u901a\u7528\u7684\u6982\u5ff5\uff0c\u5b83\u5e76\u4e0d\u662f Linux \u72ec\u6709\u7684\u3002\u4f60\u4f1a\u7ecf\u5e38\u53d1\u73b0\u5404\u79cd\u8f6f\u4ef6\u6216\u7f16\u7a0b\u8bed\u8a00\u7684\u5305\u7ba1\u7406\u5668\u3002\u6709 \u53ea\u662f\u9488\u5bf9 Python \u5305\u7684 PIP \u5305\u7ba1\u7406\u5668 \u3002\u751a\u81f3 Atom \u7f16\u8f91\u5668\u4e5f\u6709\u81ea\u5df1\u7684\u5305\u7ba1\u7406\u5668 \u3002<\/p>\n

\u7531\u4e8e\u672c\u6587\u7684\u91cd\u70b9\u662f Linux\uff0c\u6240\u4ee5\u6211\u4f1a\u4ece Linux \u7684\u89d2\u5ea6\u51fa\u53d1\u3002\u4e0d\u8fc7\uff0c\u8fd9\u91cc\u7684\u5927\u90e8\u5206\u89e3\u91ca\u4e5f\u53ef\u4ee5\u5e94\u7528\u4e8e\u4e00\u822c\u7684\u5305\u7ba1\u7406\u5668\u3002<\/p>\n

\u6211\u521b\u5efa\u4e86\u8fd9\u4e2a\u56fe(\u57fa\u4e8e SUSE Wiki)\uff0c\u8fd9\u6837\u4f60\u5c31\u53ef\u4ee5\u5f88\u5bb9\u6613\u7406\u89e3\u5305\u7ba1\u7406\u5668\u662f\u5982\u4f55\u5de5\u4f5c\u7684\u3002<\/p>\n

\"\"<\/a><\/center>\u51e0\u4e4e\u6240\u6709\u7684 Linux \u53d1\u884c\u7248\u90fd\u6709\u201c \u8f6f\u4ef6\u4ed3\u5e93(software repository)\u201d\uff0c\u5b83\u57fa\u672c\u4e0a\u662f\u8f6f\u4ef6\u5305\u7684\u96c6\u5408\u3002\u662f\u7684\uff0c\u53ef\u4ee5\u6709\u4e0d\u6b62\u4e00\u4e2a\u8f6f\u4ef6\u5e93\u3002\u8f6f\u4ef6\u5e93\u5305\u542b\u4e0d\u540c\u79cd\u7c7b\u7684\u8f6f\u4ef6\u5305\u3002<\/p>\n

\u8f6f\u4ef6\u4ed3\u5e93\u4e5f\u6709\u5143\u6570\u636e\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u8f6f\u4ef6\u5305\u7684\u4fe1\u606f\uff0c\u5982\u8f6f\u4ef6\u5305\u7684\u540d\u79f0\u3001\u7248\u672c\u53f7\u3001\u8f6f\u4ef6\u5305\u7684\u63cf\u8ff0\u548c\u8f6f\u4ef6\u4ed3\u5e93\u540d\u79f0\u7b49\u3002\u8fd9\u5c31\u662f\u4f60\u5728 Ubuntu\/Debian \u4e2d\u4f7f\u7528 apt show \u547d\u4ee4 \u6240\u770b\u5230\u7684\u3002<\/p>\n

\u4f60\u7684\u7cfb\u7edf\u4e0a\u7684\u5305\u7ba1\u7406\u5668\u9996\u5148\u4f1a\u4e0e\u5143\u6570\u636e\u8fdb\u884c\u4ea4\u4e92\u3002\u5305\u7ba1\u7406\u5668\u5728\u4f60\u7684\u7cfb\u7edf\u4e0a\u521b\u5efa\u4e86\u4e00\u4e2a\u5143\u6570\u636e\u7684\u672c\u5730\u7f13\u5b58\u3002\u5f53\u4f60\u8fd0\u884c\u5305\u7ba1\u7406\u5668\u7684\u66f4\u65b0\u9009\u9879(\u4f8b\u5982 apt update)\u65f6\uff0c\u5b83\u4f1a\u901a\u8fc7\u5f15\u7528\u4ed3\u5e93\u4e2d\u7684\u5143\u6570\u636e\u6765\u66f4\u65b0\u672c\u5730\u5143\u6570\u636e\u7f13\u5b58\u3002<\/p>\n

\u5f53\u4f60\u8fd0\u884c\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u7684\u5b89\u88c5\u547d\u4ee4(\u4f8b\u5982 apt install package_name)\u65f6\uff0c\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u4f1a\u5f15\u7528\u8fd9\u4e2a\u7f13\u5b58\u3002\u5982\u679c\u5b83\u5728\u7f13\u5b58\u4e2d\u627e\u5230\u4e86\u5305\u7684\u4fe1\u606f\uff0c\u5b83\u5c31\u4f1a\u4f7f\u7528\u4e92\u8054\u7f51\u8fde\u63a5\u5230\u76f8\u5e94\u7684\u4ed3\u5e93\uff0c\u5e76\u5728\u4f60\u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5\u4e4b\u524d\u5148\u4e0b\u8f7d\u5305\u3002<\/p>\n

\u4e00\u4e2a\u5305\u53ef\u80fd\u6709\u4f9d\u8d56\u5173\u7cfb\u3002\u610f\u601d\u662f\u8bf4\uff0c\u5b83\u53ef\u80fd\u9700\u8981\u5b89\u88c5\u5176\u4ed6\u8f6f\u4ef6\u5305\u3002\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u901a\u5e38\u4f1a\u5904\u7406\u8fd9\u4e9b\u4f9d\u8d56\u5173\u7cfb\uff0c\u5e76\u5c06\u5176\u4e0e\u4f60\u6b63\u5728\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u4e00\u8d77\u81ea\u52a8\u5b89\u88c5\u3002<\/p>\n

\"\"<\/a><\/center><\/p>\n
Linux \u4e2d\u5305\u7ba1\u7406\u5668\u4f1a\u5904\u7406\u4f9d\u8d56\u5173\u7cfb<\/strong><\/span><\/div>\n

<\/strong><\/p>\n

\u540c\u6837\uff0c\u5f53\u4f60\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5220\u9664\u4e00\u4e2a\u5305\u65f6\uff0c\u5b83\u8981\u4e48\u81ea\u52a8\u5220\u9664\uff0c\u8981\u4e48\u901a\u77e5\u4f60\u7cfb\u7edf\u6709\u672a\u4f7f\u7528\u7684\u5305\u53ef\u4ee5\u6e05\u7406\u3002<\/p>\n

\u9664\u4e86\u5b89\u88c5\u3001\u5220\u9664\u8fd9\u4e9b\u663e\u800c\u6613\u89c1\u7684\u4efb\u52a1\u5916\uff0c\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5bf9\u5305\u8fdb\u884c\u914d\u7f6e\uff0c\u5e76\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u8fdb\u884c\u7ba1\u7406\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u5728\u5e38\u89c4\u7684\u7cfb\u7edf\u66f4\u65b0\u4e2d \u9632\u6b62\u5347\u7ea7\u67d0\u4e2a\u5305\u7684\u7248\u672c \u3002\u4f60\u7684\u5305\u7ba1\u7406\u5668\u53ef\u80fd\u8fd8\u80fd\u505a\u5f88\u591a\u4e8b\u60c5\u3002<\/p>\n

\u4e0d\u540c\u79cd\u7c7b\u7684\u5305\u7ba1\u7406\u5668<\/strong><\/strong><\/div>\n

\u5305\u7ba1\u7406\u5668\u56e0\u6253\u5305\u7cfb\u7edf\u800c\u5f02\uff0c\u4f46\u540c\u4e00\u6253\u5305\u7cfb\u7edf\u5374\u53ef\u80fd\u6709\u591a\u4e2a\u5305\u7ba1\u7406\u5668\u3002<\/p>\n

\u4f8b\u5982\uff0cRPM \u6709 Yum \u548c DNF \u5305\u7ba1\u7406\u5668\u3002\u5bf9\u4e8e DEB\uff0c\u4f60\u6709 apt-get\u3001 aptitude \u7b49\u57fa\u4e8e\u547d\u4ee4\u884c\u7684\u5305\u7ba1\u7406\u5668\u3002<\/p>\n

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

 <\/p>\n

Synaptic \u5305\u7ba1\u7406\u5668<\/strong><\/span><\/div>\n

\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u4e0d\u4e00\u5b9a\u662f\u57fa\u4e8e\u547d\u4ee4\u884c\u7684\uff0c\u4e5f\u6709\u56fe\u5f62\u5316\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u6bd4\u5982 Synaptic \u3002\u4f60\u7684\u53d1\u884c\u7248\u7684\u201c\u8f6f\u4ef6\u4e2d\u5fc3\u201d\u4e5f\u662f\u4e00\u4e2a\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\uff0c\u5373\u4f7f\u5b83\u5728\u5e95\u5c42\u8fd0\u884c\u7684\u662f apt-get \u6216 DNF\u3002<\/p>\n

\u7ed3\u8bba<\/strong><\/strong><\/div>\n

\u6211\u4e0d\u60f3\u8fdb\u4e00\u6b65\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e2a\u8bdd\u9898\uff0c\u867d\u7136\u6211\u53ef\u4ee5\u7ee7\u7eed\u8bf4\u4e0b\u53bb\uff0c\u4f46\u8fd9\u5c06\u504f\u79bb\u672c\u4e3b\u9898\u7684\u76ee\u6807 \u2014\u2014 \u5373\u8ba9\u4f60\u5bf9 Linux \u4e2d\u7684\u5305\u7ba1\u7406\u5668\u6709\u4e00\u4e2a\u57fa\u672c\u7684\u4e86\u89e3\u3002<\/p>\n

\u6211\u6682\u65f6\u5ffd\u7565\u4e86\u65b0\u7684\u901a\u7528\u6253\u5305\u683c\u5f0f\uff0c\u6bd4\u5982 Snap \u548c Flatpak\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

Linux \u53d1\u884c\u7248\u4e4b\u95f4\u6709\u4ec0\u4e48\u4e0d\u540c \u7684\u8981\u70b9\u4e4b\u4e00\u662f\u5305\u7ba1\u7406\u3002\u5728\u8fd9\u7bc7 Linux \u9ed1\u8bdd\u89e3\u91ca\u4e2d\uff0c\u4f60\u5c06\u4e86\u89e3 Linux \u4e2d […]<\/p>\n","protected":false},"author":643,"featured_media":203187,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-203160","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\/203160","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\/643"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=203160"}],"version-history":[{"count":6,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/203160\/revisions"}],"predecessor-version":[{"id":203195,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/203160\/revisions\/203195"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/203187"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=203160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=203160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=203160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}