{"id":289947,"date":"2024-02-13T21:10:50","date_gmt":"2024-02-13T13:10:50","guid":{"rendered":"https:\/\/lrxjmw.cn\/cczxtqsxzbaz.html"},"modified":"2024-02-13T21:10:50","modified_gmt":"2024-02-13T13:10:50","slug":"cczxtqsxzbaz","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/cczxtqsxzbaz.html","title":{"rendered":"Centos Linux\u64cd\u4f5c\u7cfb\u7edf\u8f7b\u677e\u4e0b\u8f7d\u5e76\u5b89\u88c5RPM\u5305\uff0c\u7ec8\u6781\u6307\u5357"},"content":{"rendered":"

\u5728Centos Linux<\/a>\u64cd\u4f5c\u7cfb\u7edf<\/a>\u4e2d\uff0c\u4f7f\u7528RPM\uff08Red Hat Package Manager\uff09\u7ba1\u7406\u5668\u5b89\u88c5\u8f6f\u4ef6\u662f\u5e38\u89c1\u4e14\u4fbf\u6377\u7684\u65b9\u5f0f\u3002\u4e0b\u9762\uff0c\u8bf7\u8ddf\u968f\u6211\u4eec\u7684\u6307\u5bfclinux\u89c6\u9891\u6559\u7a0b\uff0c\u8f7b\u677e\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6240\u9700\u7684RPM\u5305\u3002<\/p>\n

\u4e00\u3001\u4ec0\u4e48\u662frpm\u5305\uff1f<\/b><\/p>\n

Red Hat Package Manager\uff08\u7b80\u79f0\u4e3arpm\uff09linux\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4f5c\u4e3aCentos\u670d\u52a1\u5668\u7528\u6237\u4e2d\u5e38\u89c1\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u5de5\u5177\u4e4b\u4e00\uff0c\u5176\u4e3b\u8981\u529f\u80fd\u5728\u4e8e\u5c06\u5b8c\u6574\u7684\u8f6f\u4ef6\u53ca\u6240\u9700\u73af\u5883\u6253\u5305\u4e8e\u4e00\u4e2a\u6587\u4ef6\u4e4b\u4e2d\uff0c\u4f7f\u5f97\u8f6f\u4ef6\u7684\u5b89\u88c5\u548c\u5220\u9664\u53d8\u5f97\u7b80\u5355\u5feb\u6377\u3002<\/p>\n

\u4e8c\u3001\u4f7f\u7528yum\u547d\u4ee4<\/a>\u4e0b\u8f7drpm\u5305<\/b><\/p>\n

\u606d\u559c\u60a8\u4f7f\u7528\u4e86CentOS\u7cfb\u7edf\uff01\u8fd9\u91cc\u5411\u60a8\u63a8\u8350YUM\uff08\u5373\u201c\u9ec4\u8272\u72d7\u6539\u826f\u66f4\u65b0\u5668\u201d\uff09\u529f\u80fd\uff0c\u63d0\u4f9b\u9ad8\u901fRPM\u5e93\u4e0b\u8f7d\u548c\u5b89\u88c5\u670d\u52a1\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528\u6b65\u9aa4\u7684\u7b80\u8981\u8bf4\u660e\uff1a<\/p>\n

1.\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u83b7\u53d6\u6700\u65b0\u7684\u8f6f\u4ef6\u6e90\u5217\u8868\uff1a<\/p>\n

```<\/p>\n

sudo yum update<\/p>\n

2.\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u641c\u7d22\u9700\u8981\u4e0b\u8f7d\u7684rpm\u5305\uff1a<\/b><\/p>\n

sudo yum search <\/p>\n

\u5176\u4e2d\uff0c<\/p>\n

\u662f\u60a8\u8981\u641c\u7d22\u7684\u8f6f\u4ef6\u540d\u79f0\u3002<\/p>\n

3.\u627e\u5230\u60a8\u9700\u8981\u4e0b\u8f7d\u7684rpm\u5305\u540e\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n

sudo yum install <\/p>\n

\u4e0b\u8f7dcentos\u4e86\u627e\u4e0d\u5230\u5728\u54ea_linux centos \u4e0b\u8f7drpm_\u4e0b\u8f7d\u5fae\u4fe1<\/p>\n

\u662f\u60a8\u8981\u5b89\u88c5\u7684\u8f6f\u4ef6\u540d\u79f0\u3002<\/p>\n

\u4e09\u3001\u4f7f\u7528wget\u547d\u4ee4\u4e0b\u8f7drpm\u5305<\/b><\/p>\n

\u5728\u4e0d\u4f9d\u8d56\u4e8e yum \u7684\u60c5\u51b5\u4e0b\uff0cwget \u547d\u4ee4\u540c\u6837\u80fd\u4e3a\u60a8\u8f7b\u677e\u89e3\u51b3\u4e0b\u8f7d RPM \u5305\u7684\u95ee\u9898\u3002wget\uff0c\u8fd9\u4e00\u529f\u80fd\u4e30\u5bcc\u4e14\u5e7f\u53d7\u6b22\u8fce\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u5c24\u5176\u64c5\u957f\u4ece\u7f51\u7edc\u4e2d\u83b7\u53d6\u5404\u7c7b\u6587\u4ef6\u3002\u4e0b\u9762\u8bf7\u5141\u8bb8\u6211\u5411\u60a8\u8be6\u7ec6\u5c55\u793a\u64cd\u4f5c\u6b65\u9aa4\uff1a<\/p>\n

1.\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u4e0b\u8f7drpm\u5305\uff1a<\/b><\/p>\n

wget <rpm_package_url><\/p>\n

\u5176\u4e2d\uff0c<rpm_package_url>\u662f\u60a8\u8981\u4e0b\u8f7d\u7684rpm\u5305\u7684\u4e0b\u8f7d\u94fe\u63a5\u3002<\/p>\n

2.\u4e0b\u8f7d\u5b8c\u6210\u540elinux centos \u4e0b\u8f7drpm<\/strong>\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5rpm\u5305\uff1a<\/b><\/p>\n

sudo rpm -ivh <\/p>\n

\u662f\u60a8\u4e0b\u8f7d\u7684rpm\u5305\u7684\u6587\u4ef6\u540d\u3002<\/p>\n

\u56db\u3001\u4f7f\u7528\u6d4f\u89c8\u5668\u4e0b\u8f7drpm\u5305<\/b><\/p>\n

\u5c0a\u656c\u7684\u7528\u6237\uff0c\u5982\u679c\u60a8\u66f4\u559c\u6b22\u4f7f\u7528\u6d4f\u89c8\u5668\u8fdb\u884c\u6587\u4ef6\u4e0b\u8f7dlinux centos \u4e0b\u8f7drpm<\/strong>\uff0c\u6211\u4eec\u5f88\u4e50\u610f\u544a\u8bc9\u60a8\uff0cCentos\u7cfb\u7edf\u540c\u6837\u63d0\u4f9b\u4e86\u6b64\u9879\u670d\u52a1\u3002\u4e0b\u9762\u662f\u64cd\u4f5c\u6b65\u9aa4\u4ecb\u7ecd\uff1a<\/p>\n

\u5c0a\u656c\u7684\u7528\u6237\uff0c\u8bf7\u60a8\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u5e76\u5728\u5730\u5740\u680f\u4e2d\u8f93\u5165\u4ee5\u4e0b\u94fe\u63a5\u6765\u8bbf\u95eeCENTOS\u5b98\u7f51\u7684\u8f6f\u4ef6\u4ed3\u5e93\uff1a<\/p>\n

\u6b22\u8fce\u60a8\u8bbf\u95ee\u6211\u4eec\u7684\u955c\u50cf\u7f51\u7ad9\uff1a\u3002<\/p>\n

\u82e5\u60a8\u5df2\u5728\u9996\u9875\u627e\u5230\u4e86\u6240\u9700\u8981\u7684rpm\u5305\uff0c\u8bf7\u8f7b\u8f7b\u70b9\u51fb\u8fdb\u5165\u76f8\u5e94\u533a\u57df\u5373\u53ef\u3002<\/p>\n

\u5728\u9996\u9875\u641c\u7d22\u9700\u8981\u7684rpm\u5305\uff0c\u8f7b\u8f7b\u70b9\u51fb\u5373\u53ef\u5b8c\u6210\u4e0b\u8f7d\u54e6\uff01<\/p>\n

\u4e94\u3001\u6ce8\u610f\u4e8b\u9879\u53ca\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5<\/b><\/p>\n

\u82e5\u9047\u5230\u4e0b\u8f7d\u901f\u5ea6\u7f13\u6162\u6216\u65e0\u6cd5\u4e0b\u8f7d\u5b8c\u6bd5\u7684\u95ee\u9898\uff0c\u5efa\u8bae\u60a8\u66f4\u6362\u4e0b\u7f51\u7edc\u73af\u5883\u5e76\u91cd\u65b0\u8fde\u63a5\u540e\u518d\u6b21\u5c1d\u8bd5\u4e0b\u8f7d\u54e6\u3002<\/p>\n

\u5c0a\u656c\u7684\u7528\u6237\uff0c\u7531\u4e8eRPM\u8f6f\u4ef6\u5305\u6709\u65f6\u4f1a\u6d89\u53ca\u5230\u4f9d\u8d56\u6027\u95ee\u9898\u3002\u5982\u679c\u60a8\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86\u8fd9\u7c7b\u56f0\u6270\uff0c\u671f\u5f85\u60a8\u80fd\u70ed\u5fc3\u6309\u7167\u9519\u8bef\u63d0\u793a\u6765\u8bd5\u7740\u4f9d\u9760yum\u6307\u4ee4\u89e3\u51b3\u76f8\u5e94\u7684\u4f9d\u8d56\u77db\u76fe\u5462\uff01<\/p>\n

\u4e0b\u8f7dcentos\u4e86\u627e\u4e0d\u5230\u5728\u54ea_linux centos \u4e0b\u8f7drpm_\u4e0b\u8f7d\u5fae\u4fe1<\/p>\n

\u8bf7\u60a8\u52a1\u5fc5\u7cbe\u786e\u586b\u5199wget\u547d\u4ee4\u4e2d\u7684\u94fe\u63a5\uff0c\u8fd9\u6837\u624d\u80fd\u4fdd\u8bc1\u6210\u529f\u5730\u4e0b\u8f7drpm\u8f6f\u4ef6\u5305\u53ca\u76f8\u5173\u6587\u6863\u5462\u3002<\/p>\n

\u516d\u3001\u603b\u7ed3<\/b><\/p>\n

\u672c\u6587\u4e3a\u60a8\u4ecb\u7ecd3\u4e2a\u7b80\u4fbf\u6709\u6548\u7684\u65b9\u6cd5\uff0c\u5e2e\u52a9\u60a8\u5728Centos Linux\u7cfb\u7edf\u4e2d\u83b7\u53d6RPM\u8f6f\u4ef6\u5305\u2014\u2014\u4f7f\u7528\u65b9\u4fbf\u7684yum\u6307\u4ee4\u3001\u5feb\u6377\u7684wget\u547d\u4ee4\uff0c\u6216\u662f\u901a\u8fc7\u6d4f\u89c8\u5668\u76f4\u63a5\u4e0b\u8f7d\u3002\u638c\u63e1\u4ee5\u4e0a\u6280\u5de7\uff0c\u60a8\u5c06\u80fd\u591f\u8f7b\u677e\u83b7\u53d6\u6240\u9700\u7684\u8f6f\u4ef6\u8d44\u6e90\uff0c\u987a\u5229\u5b8c\u6210\u5176\u5b89\u88c5\u548c\u4f7f\u7528\u8fc7\u7a0b\u3002<\/p>\n

\u4e03\u3001\u53c2\u8003\u8d44\u6599<\/b><\/p>\n

\u6b22\u8fce\u5149\u4e34\u6211\u4eec\u7684Linux\u6559\u7a0b\u7f51\u7ad9\uff01\u8fd9\u513f\u6709\u5927\u91cf\u5b9e\u7528\u7684Linux\u547d\u4ee4\u6559\u7a0b\u7b49\u4f60\u6765\u63a2\u7d22\u3002\u671f\u5f85\u60a8\u7684\u968f\u65f6\u8385\u4e34\uff01<\/p>\n

\u6b22\u8fce\u60a8\u8bbf\u95ee\u6211\u4eec\u7684Centos\u5b98\u65b9\u7f51\u7ad9\u3002\u94fe\u63a5\u5728\u6b64\uff1a\u3002<\/p>\n

\u5e0c\u671b\u8fd9\u4efd\u7b80\u5355\u7684\u6307\u5357\u80fd\u52a9\u60a8\u5728Linux Centos\u73af\u5883\u4e2d\u987a\u5229\u5b8c\u6210rpm\u5305\u7684\u4e0b\u8f7d\u3002\u5982\u6709\u4e0d\u660e\u4e4b\u5904\uff0c\u8bf7\u968f\u65f6\u4e0e\u6211\u4eec\u53d6\u5f97\u8054\u7cfb\uff0c\u975e\u5e38\u611f\u8c22\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4e0b\u9762\uff0c\u8bf7\u8ddf\u968f\u6211\u4eec\u7684\u6307\u5bfc\uff0c\u8f7b\u677e\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6240\u9700\u7684RPM\u5305\u3002\u8fd9\u91cc\u5411\u60a8\u63a8\u8350YUM\uff08\u5373\u201c\u9ec4\u8272\u72d7\u6539\u826f\u66f4\u65b0\u5668\u201d\uff09\u529f\u80fd\uff0c\u63d0\u4f9b\u9ad8\u901fRPM\u5e93\u4e0b\u8f7d\u548c\u5b89\u88c5\u670d\u52a1\u3002\u627e\u5230\u60a8\u9700\u8981\u4e0b\u8f7d\u7684rpm\u5305\u540e\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u8fdb\u884c\u5b89\u88c5\uff1a\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5rpm\u5305\uff1a<\/p>\n","protected":false},"author":1,"featured_media":289948,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-289947","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/289947","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=289947"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/289947\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/289948"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=289947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=289947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=289947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}