{"id":294065,"date":"2024-10-31T04:03:23","date_gmt":"2024-10-30T20:03:23","guid":{"rendered":"https:\/\/gulass.cn\/zwlxtyysdyml.html"},"modified":"2024-10-31T04:03:23","modified_gmt":"2024-10-30T20:03:23","slug":"zwlxtyysdyml","status":"publish","type":"post","link":"https:\/\/gulass.cn\/zwlxtyysdyml.html","title":{"rendered":"\u638c\u63e1 Linux \u7cfb\u7edf\u5e94\u7528\u5546\u5e97\uff1ayum \u547d\u4ee4\u5b89\u88c5\u8f6f\u4ef6\u7684\u8be6\u7ec6\u6559\u7a0b"},"content":{"rendered":"

\u90ae\u7bb1\uff1a<\/p>\n

Linux<\/a>\u7cfb\u7edf\u7684\u5e94\u7528\u5546\u5e97<\/p>\n

\u64cd\u4f5c\u7cfb\u7edf\u5b89\u88c5\u8f6f\u4ef6\u6709\u8bb8\u591a\u79cd\u5f62\u5f0f\uff0c\u901a\u5e38\u662f\u4e0b\u8f7d\u5b89\u88c5\u5305\u81ea\u884c\u5b89\u88c5\u6216\u5219\u662f\u5728\u7cfb\u7edf\u7684\u5e94\u7528\u5546\u5e97\u5185\u5b89\u88c5\u5d4c\u5165\u5f0flinux\u8bba\u575b\uff0clinux\u7cfb\u7edf\u4e5f\u652f\u6301\u8fd9\u4e24\u79cd\u65b9\u6cd5\uff0c\u9996\u5148\u6211\u4eec\u6765\u5b66\u4e60Linux\u547d\u4ee4<\/a>\u884c\u5185\u7684\u201c\u5e94\u7528\u5546\u5e97\u201d\uff0cyum\u547d\u4ee4\u5b89\u88c5\u8f6f\u4ef6\u3002<\/p>\n

yum\u547d\u4ee4<\/p>\n

\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u514d\u8d39\u5b89\u88c5_linux\u8f6f\u4ef6\u4e0b\u8f7d\u7f51\u7ad9_\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u98ce\u9669<\/p>\n

01<\/p>\n

yum\uff1aRPM\uff08Linux\u64cd\u4f5c\u7cfb\u7edf\u5b89\u88c5\u5305\u683c\u5f0f\uff09\u5305\u8f6f\u4ef6\u7ba1\u7406\u5668\uff0c\u7528\u4e8e\u624b\u52a8\u5316\u5b89\u88c5\u914d\u7f6eLinux\u8f6f\u4ef6\uff0c\u5e76\u53ef\u4ee5\u624b\u52a8\u89e3\u51b3\u4f9d\u8d56\u95ee\u9898\u3002<\/p>\n

\n

\u8bed\u6cd5\uff1ayum [-y] [install | remove | search] \u8f6f\u4ef6\u540d\u79f0<\/span><\/code><\/pre>\n<\/p>\n

\u8bf4\u660e\uff1a<\/p>\n

\uff081\uff09\u9009\u9879\uff0c-y\uff0c\u624b\u52a8\u786e\u8ba4\uff0c\u65e0\u9700\u81ea\u52a8\u786e\u8ba4\u5b89\u88c5\u6216\u5378\u8f7d\u8fc7\u7a0b<\/p>\n

\uff082\uff09install\u5b89\u88c5<\/p>\n

\uff083\uff09remove\u5378\u8f7d<\/p>\n

\uff084\uff09search\u641c\u7d22<\/p>\n

\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u98ce\u9669_\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u514d\u8d39\u5b89\u88c5_linux\u8f6f\u4ef6\u4e0b\u8f7d\u7f51\u7ad9<\/p>\n

\u6ce8\u610f\uff1a<\/p>\n

yum\u547d\u4ee4\u9700root\u6743\u9650\uff0c\u5207\u6362\u5230root\u7528\u6237\u6216\u5219sudo\u52a0\u58f3\u4f7f\u7528\uff1b\u4ee5\u53cayum\u547d\u4ee4\u987b\u8981\u8054\u7f51<\/p>\n

\u793a\u4f8b<\/p>\n

1\u3001\u641c\u7d22\u662f\u5426\u6709wget\u7a0b\u5e8f\uff1ayumsearchwgetlinux\u8f6f\u4ef6\u4e0b\u8f7d\u7f51\u7ad9<\/strong>\uff0c\u53ef\u4ee5\u770b\u89c1\u6211\u4eec\u641c\u7d22\u5230\u4e86\u4e00\u4e2a\u53ebwget\u7684\u7a0b\u5e8f\u9002\u7528\u4e8e64\u4f4d\u7cfb\u7edf\uff0c\u8bf4\u660eyum\u7a0b\u5e8f\u53ef\u4ee5\u5b89\u88c5\u6b64\u8f6f\u4ef6<\/p>\n

2\u3001\u5b89\u88c5wget\u7a0b\u5e8f\uff1a\u6267\u884cyuminstallwget\uff0c\u5373\u5f00\u59cb\u4e0b\u8f7d\u5bf9\u5e94\u7684\u8f6f\u4ef6\u5b89\u88c5\u5305\uff0c\u540c\u65f6\u5728\u6b64\u8fc7\u7a0b\u4e2d\uff0c\u5047\u5982\u6709\u5b83\u6240\u4f9d\u8d56\u7684\u7a0b\u5e8f\uff0c\u4e5f\u4f1a\u628a\u5b83\u6240\u4f9d\u8d56\u7684\u5176\u4ed6\u7a0b\u5e8f\u4e0b\u8f7d\u5e76\u5b89\u88c5<\/p>\n

\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u514d\u8d39\u5b89\u88c5_\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u98ce\u9669_linux\u8f6f\u4ef6\u4e0b\u8f7d\u7f51\u7ad9<\/p>\n

\u63d0\u793a\u6211\u4eec\u5373\u5c06\u4e0b\u8f7d547kb\uff0c\u662f\u5426ok\uff0c\u8f93\u5165y\u8868\u793ayes\uff08\u6211\u63a5\u53d7\uff09\uff1b\u82e5\u679c\u4e0d\u5e0c\u671b\u5b83\u5bfb\u95ee\uff0c\u60f3\u8981\u76f4\u63a5\u5b89\u88c5\uff0c\u6267\u884cyum-yinstallwget\uff0c\u90fd\u4f1a\u76f4\u63a5\u4e0b\u8f7d\u5b89\u88c5\u3002<\/p>\n

linux\u8f6f\u4ef6\u4e0b\u8f7d\u7f51\u7ad9_\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u514d\u8d39\u5b89\u88c5_\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u98ce\u9669<\/p>\n

3\u3001\u5378\u8f7d\u7a0b\u5e8f\uff1a\u901a\u8fc7yum\u547d\u4ee4\uff0c\u6267\u884cyumremovewget<\/p>\n

linux\u8f6f\u4ef6\u4e0b\u8f7d\u7f51\u7ad9_\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u514d\u8d39\u5b89\u88c5_\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u98ce\u9669<\/p>\n

\u7a0b\u5e8f\u79fb\u9664\u4ee5\u540e\uff0c\u518d\u6267\u884cwget\uff0c\u4f1a\u53d1\u89c9\u6587\u4ef6\u4e0d\u5b58\u5728linux \u547d\u4ee4\uff0c\u5373\u5378\u8f7d\u6210\u529f\u3002<\/p>\n

\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u514d\u8d39\u5b89\u88c5_\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u98ce\u9669_linux\u8f6f\u4ef6\u4e0b\u8f7d\u7f51\u7ad9<\/p>\n

linux\u8f6f\u4ef6\u4e0b\u8f7d\u7f51\u7ad9_\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u514d\u8d39\u5b89\u88c5_\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u98ce\u9669<\/p>\n

02<\/p>\n

apt\u547d\u4ee4-\u62d3\u5c55<\/p>\n

linux\u8f6f\u4ef6\u4e0b\u8f7d\u7f51\u7ad9_\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u98ce\u9669_\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u514d\u8d39\u5b89\u88c5<\/p>\n

\u5bf9\u4e8e\u4e4b\u524d\u6240\u5b66\u7684\u5404\u79cdlinux\u547d\u4ee4\uff0c\u5728CentOS\u548cUbuntu\u7cfb\u7edf\u4e2d\u662f\u901a\u7528\u7684\u3002\u5bf9\u4e8e\u8f6f\u4ef6\u5b89\u88c5\uff0cCentOS\u548cUbuntu\u4f7f\u7528\u4e0d\u540c\u7684\u5305\u7ba1\u7406\u5668\u3002<\/p>\n

CentOS\u4f7f\u7528\u7684\u662fyum\u7ba1\u7406\u5668linux\u8f6f\u4ef6\u4e0b\u8f7d\u7f51\u7ad9<\/strong>\uff0cUbuntu\u4f7f\u7528\u7684\u662fapt\u7ba1\u7406\u5668\u3002<\/p>\n

\n

\u8bed\u6cd5\uff1aapt [-y] [install | remove | search] \u8f6f\u4ef6\u540d\u79f0<\/span><\/code><\/pre>\n<\/p>\n

\u8bf4\u660e\uff1a\u7528\u6cd5\u4e0eyum\u4e00\u81f4\uff0c\u987b\u8981root\u6743\u9650<\/p>\n

\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u514d\u8d39\u5b89\u88c5_\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u98ce\u9669_linux\u8f6f\u4ef6\u4e0b\u8f7d\u7f51\u7ad9<\/p>\n

linux\u8f6f\u4ef6\u4e0b\u8f7d\u7f51\u7ad9_\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u514d\u8d39\u5b89\u88c5_\u4e0b\u8f7d\u7f51\u7ad9\u8f6f\u4ef6\u98ce\u9669<\/p>\n

END<\/p>\n","protected":false},"excerpt":{"rendered":"

wget\uff0c\u5373\u5f00\u59cb\u4e0b\u8f7d\u5bf9\u5e94\u7684\u8f6f\u4ef6\u5b89\u88c5\u5305\uff0c\u540c\u65f6\u5728\u6b64\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u6709\u5b83\u6240\u4f9d\u8d56\u7684\u7a0b\u5e8f\uff0c\u4e5f\u4f1a\u628a\u5b83\u6240\u4f9d\u8d56\u7684\u5176\u4ed6\u7a0b\u5e8f\u4e0b\u8f7d\u5e76\u5b89\u88c5wget\uff0c\u5c31\u4f1a\u76f4\u63a5\u4e0b\u8f7d\u5b89\u88c5\u3002\u5bf9\u4e8e\u8f6f\u4ef6\u5b89\u88c5\uff0cCentOS\u548cUbuntu\u4f7f\u7528\u4e0d\u540c\u7684\u5305\u7ba1\u7406\u5668\u3002<\/p>\n","protected":false},"author":1,"featured_media":294066,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[3964],"class_list":["post-294065","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-a6ebdc07662e8091f1909e26448a02b5"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/294065","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=294065"}],"version-history":[{"count":0,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/294065\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/294066"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=294065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=294065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=294065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}