{"id":52136,"date":"2024-12-03T10:09:46","date_gmt":"2024-12-03T02:09:46","guid":{"rendered":"https:\/\/fwq.ai\/blog\/52136\/"},"modified":"2024-12-03T10:09:46","modified_gmt":"2024-12-03T02:09:46","slug":"linux%e5%ae%89%e8%a3%85%e8%bd%af%e4%bb%b6%e7%9a%84%e6%96%b9%e6%b3%95%e6%98%af%e4%bb%80%e4%b9%88","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/52136\/","title":{"rendered":"Linux\u5b89\u88c5\u8f6f\u4ef6\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>Linux\u5b89\u88c5\u8f6f\u4ef6\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48<\/h1>\n<p>\u4eca\u65e5\u4e0d\u80af\u57cb\u5934\uff0c\u660e\u65e5\u4f55\u4ee5\u62ac\u5934\uff01\u6bcf\u65e5\u4e00\u53e5\u52aa\u529b\u81ea\u5df1\u7684\u8bdd\u54c8\u54c8~\u54c8\u55bd\uff0c\u4eca\u5929\u6211\u5c06\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u7bc7<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aLinux\u5b89\u88c5\u8f6f\u4ef6\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\u300b<\/span>\uff0c\u4e3b\u8981\u5185\u5bb9\u662f\u8bb2\u89e3<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\uff0c\u611f\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u6536\u85cf\u6216\u8005\u6709\u66f4\u597d\u7684\u5efa\u8bae\u5728\u8bc4\u8bba\u63d0\u51fa\uff0c\u6211\u90fd\u4f1a\u8ba4\u771f\u770b\u7684\uff01\u5927\u5bb6\u4e00\u8d77\u8fdb\u6b65\uff0c\u4e00\u8d77\u5b66\u4e60\uff01<\/p>\n<p><strong>1&nbsp; rpm&nbsp; -ivh \u5305\u540d.rpm<\/strong><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rpm -ivh your-package&nbsp; &nbsp;\u5b89\u88c5<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rpm -e tree \u5378\u8f7d<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rpm -ql tree&nbsp; \u67e5\u8be2<\/p>\n<p><strong>2&nbsp; yum\u5b89\u88c5\u81ea\u52a8\u89e3\u51b3rpm\u5b89\u88c5\u7684\u4f9d\u8d56\u95ee\u9898\uff0c\u5b89\u88c5\u66f4\u7b80\u5355\u5316<\/strong><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;yum install package1 \u5b89\u88c5<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;yum remove&nbsp;package1 \u5220\u9664\u7a0b\u5e8f\u5305package1&nbsp;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u3010\u4f18\u70b9\uff1a\u7b80\u5355\uff0c\u6613\u7528\u3011&nbsp; \u3010\u7f3a\u70b9\uff1a\u4e0d\u80fd\u5b9a\u5236\u3011<\/p>\n<p><strong>3 \u7f16\u8bd1\uff08C\u8bed\u8a00\u6e90\u7801\uff0c\uff09<\/strong><\/p>\n<p>&nbsp; .\/configure (\u914d\u7f6e\uff0c)&nbsp; &nbsp;make\uff08\u7f16\u8bd1\uff09&nbsp; make install\uff08\u5b89\u88c5\uff09<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u3010\u4f18\u70b9\uff1a\u53ef\u4ee5\u5b9a\u5236&nbsp; \u3011&nbsp; \u3010\u7f3a\u70b9\uff1a\u901f\u5ea6\u8f83\u6162\uff0c\u6548\u7387\u4f4e\uff0c\u64cd\u4f5c\u590d\u6742\u3011<\/p>\n<p><strong>4 apt-get&nbsp;<\/strong><\/p>\n<p>&nbsp; apt-get install&nbsp; package1 \uff1a\u5b89\u88c5\u5305<\/p>\n<p>&nbsp;apt-get&nbsp; remove&nbsp; package1\uff1a\u5378\u8f7d\u5305<\/p>\n<p>&nbsp; apt-get &#8211;purge remove packagename&nbsp; &nbsp; &nbsp; \u5378\u8f7d\u5305\u53ca\u5176\u914d\u7f6e<\/p>\n<p>&nbsp; &nbsp;sudo apt-get autoremove<\/p>\n<p><strong>\u4f01\u4e1a\u65b9\u5f0f\uff1a\u5b9a\u5236\u5316rpm\u5305\uff0c\u642d\u5efayum\u4ed3\u5e93\uff0c\u628a\u5b9a\u5236\u7684rpm\u5305\u653e\u5230yum\u4ed3\u5e93\uff0c\u8fdb\u884cyum\u5b89\u88c5\u3002<\/strong><\/p>\n<p>\u4eca\u5929\u5173\u4e8e\u300aLinux\u5b89\u88c5\u8f6f\u4ef6\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\u300b\u7684\u5185\u5bb9\u4ecb\u7ecd\u5c31\u5230\u6b64\u7ed3\u675f\uff0c\u5982\u679c\u6709\u4ec0\u4e48\u7591\u95ee\u6216\u8005\u5efa\u8bae\uff0c\u53ef\u4ee5\u5728\u7c73\u4e91\u516c\u4f17\u53f7\u4e0b\u591a\u591a\u56de\u590d\u4ea4\u6d41\uff1b\u6587\u4e2d\u82e5\u6709\u4e0d\u6b63\u4e4b\u5904\uff0c\u4e5f\u5e0c\u671b\u56de\u590d\u7559\u8a00\u4ee5\u544a\u77e5\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u5b89\u88c5\u8f6f\u4ef6\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48 \u4eca\u65e5\u4e0d\u80af\u57cb\u5934\uff0c\u660e\u65e5\u4f55\u4ee5\u62ac\u5934\uff01\u6bcf\u65e5\u4e00\u53e5\u52aa\u529b\u81ea\u5df1\u7684\u8bdd\u54c8\u54c8~\u54c8\u55bd\uff0c\u4eca\u5929\u6211\u5c06\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u7bc7\u300aLinux\u5b89\u88c5\u8f6f\u4ef6\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\u300b\uff0c\u4e3b\u8981\u5185\u5bb9\u662f\u8bb2\u89e3\u7b49\u7b49\uff0c\u611f\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u6536\u85cf\u6216\u8005\u6709\u66f4\u597d\u7684\u5efa\u8bae\u5728\u8bc4\u8bba\u63d0\u51fa\uff0c\u6211\u90fd\u4f1a\u8ba4\u771f\u770b\u7684\uff01\u5927\u5bb6\u4e00\u8d77\u8fdb\u6b65\uff0c\u4e00\u8d77\u5b66\u4e60\uff01 1&nbsp; rpm&nbsp; -ivh \u5305\u540d.rpm &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rpm -ivh your-package&nbsp; &nbsp;\u5b89\u88c5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rpm -e tree \u5378\u8f7d &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rpm -ql tree&nbsp; \u67e5\u8be2 2&nbsp; yum\u5b89\u88c5\u81ea\u52a8\u89e3\u51b3rpm\u5b89\u88c5\u7684\u4f9d\u8d56\u95ee\u9898\uff0c\u5b89\u88c5\u66f4\u7b80\u5355\u5316 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;yum install package1 \u5b89\u88c5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;yum [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-52136","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=52136"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52136\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=52136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=52136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=52136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}