{"id":228146,"date":"2021-10-18T09:19:22","date_gmt":"2021-10-18T01:19:22","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=228146"},"modified":"2021-10-11T09:10:05","modified_gmt":"2021-10-11T01:10:05","slug":"yun-install-update","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/yun-install-update.html","title":{"rendered":"yum\u5de5\u5177\u5bf9\u8f6f\u4ef6\u5305\u5b89\u88c5\uff0c\u5220\u9664\uff0c\u66f4\u65b0\u4ecb\u7ecd"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5728Linux\u4e0a\u89c1\u5230\u7684\u5404\u79cd\u5305\u7ba1\u7406\u7cfb\u7edf(package management system,PMS)\u7528\u6765\u8fdb\u884c\u8f6f\u4ef6\u5b89\u88c5\uff0c\u7ba1\u7406\uff0c\u5220\u9664\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002PMS\u662f\u5229\u7528\u4e00\u4e2a\u6570\u636e\u5e93\u6765\u8bb0\u5f55\u5404\u79cd\u76f8\u5173\u5185\u5bb9\uff0c\u5305\u62ec: linux\u7cfb\u7edf\u4e0a\u5df2\u5b89\u88c5\u4e86\u4ec0\u4e48\u8f6f\u4ef6\u5305\uff0c\u6bcf\u4e2a\u5305\u5b89\u88c5\u4e86\u4ec0\u4e48\u6587\u4ef6\uff0c\u6bcf\u4e2a\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u7684\u7248\u672c\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u4e00. \u6982\u8ff0<\/strong><\/div>\n

\u8f6f\u4ef6\u5305\u901a\u5e38\u4f1a\u4f9d\u8d56\u5176\u4ed6\u7684\u5305\uff0c\u4e3a\u4e86\u524d\u8005\u80fd\u591f\u6b63\u5e38\u8fd0\u884c\uff0c\u8865\u4f9d\u8d56\u7684\u5305\u5fc5\u987b\u63d0\u524d\u5b89\u88c5\u5728\u7cfb\u7edf\u4e2d\u3002PMS\u5de5\u5177\u5c06\u4f1a\u68c0\u6d4b\u8fd9\u4e9b\u4f9d\u8d56\u5173\u7cfb\u5173\u7cfb\uff0c\u5e76\u5728\u5b89\u88c5\u9700\u8981\u7684\u5305\u4e4b\u524d\uff0c\u5148\u5b89\u88c5\u597d\u6240\u6709\u989d\u5916\u7684\u8f6f\u4ef6\u5305\u3002<\/p>\n

PMS\u5bf9\u4e8e\u4e0d\u540c\u53d1\u884c\u7248\uff0c\u6ca1\u6709\u4e00\u5957\u7edf\u4e00\u7684\u6807\u51c6\u5de5\u5177\u3002\u4f7f\u7528\u5e7f\u6cdb\u7684\u4e24\u79cd\u4e3b\u8981PMS\u57fa\u7840\u5de5\u5177\u662fdpkg\u548crpm\u3002 \u57fa\u4e8eDebian\u53d1\u884c\u7248\u4f7f\u7528\u7684\u662fdpkg\u547d\u4ee4\u3002\u57fa\u4e8e Red Hat\u53d1\u884c\u7248\u4f7f\u7528\u7684\u662frpm\u547d\u4ee4\u3002\u672c\u7bc7\u4e3b\u8981\u4ecb\u7ecd\u57fa\u4e8eRed Hat\u7cfb\u7edf\u7684rpm\u5de5\u5177\u548c\u5b83\u7684\u5404\u79cd\u524d\u7aef\u754c\u9762\u3002<\/p>\n

\u57fa\u4e8e red hat\u7cfb\u7edf\uff1a
\n\u3000\u3000\u3000\u3000\u57fa\u4e8e red hat\u7cfb\u7edf\u4e5f\u6709\u51e0\u79cd\u4e0d\u540c\u7684\u53ef\u7528\u524d\u7aef\u5de5\u5177\u3002\u5e38\u89c1\u7684\u6709\u4ee5\u4e0b3\u79cd:
\n\u3000\u3000\u3000\u3000\u3000\u3000(1) yum\uff1a\u5728rea hat\u548cFedora\u4e2d\u4f7f\u7528\u3002(2) urpm\uff1a \u5728Manddriva\u4e2d\u4f7f\u7528\u3002(3) Zipper\uff1a \u5728openSUSE \u4e2d\u4f7f\u7528\u3002<\/p>\n

\u8fd9\u4e9b\u524d\u9762\u90fd\u662f\u57fa\u4e8erpm\u547d\u4ee4\u5de5\u5177\u7684\uff0c\u91cd\u70b9\u662f\u4ecb\u7ecdyum\u5de5\u5177\u3002<\/p>\n

\u4e8c . yum \u5de5\u5177<\/strong><\/div>\n
2.1 yum\u5217\u51fa\u5df2\u5b89\u88c5\u5305<\/strong><\/span><\/div>\n
[root@xuegod64 hsr]# yum list installed<\/pre>\n

\u4e0a\u9762\u7684\u547d\u4ee4\u8f93\u51fa\u5185\u5bb9\u592a\u591a\uff0c\u53ef\u4ee5\u5c06\u5185\u5bb9\u91cd\u5b9a\u5411\u5230\u4e00\u4e2a\u6587\u4ef6\u4e2d\uff0c\u53ef\u4ee5\u7528more\u6216less\u547d\u4ee4\uff0c\u6309\u7167\u9700\u8981\u67e5\u770b\u8fd9\u4e2a\u5217\u8868\uff0c \u5982\u4e0b\u6240\u793a\uff1a<\/p>\n

\"\"<\/p>\n

\u4e0b\u9762\u901a\u8fc7grep\u8fc7\u6ee4\u67e5\u627eMySQL\u7684\u5df2\u5b89\u88c5\u5305,\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n

\"\"<\/p>\n

\u5982\u679c\u9700\u8981\u627e\u51fa\u7cfb\u7edf\u4e0a\u7684\u67d0\u4e2a\u7279\u5b9a\u6587\u4ef6\u5c5e\u4e8e\u54ea\u4e2a\u8f6f\u4ef6\u5305\uff0cyum \u4e5f\u53ef\u4ee5\u505a\u5230,\u4e0b\u9762\u627emysql\u6587\u4ef6\u5c5e\u4e8e\u54ea\u4e2a\u8f6f\u4ef6\u5305\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n

\"\"<\/p>\n

2.2 \u7528yum\u5b89\u88c5\u8f6f\u4ef6<\/strong><\/span><\/div>\n

\u8f6f\u4ef6\u5305\u5b58\u50a8\u5728\u670d\u52a1\u5668\u4e0a\uff0c\u53ef\u4ee5\u5229\u7528\u672c\u5730linux\u7cfb\u7edf\u4e0a\u7684PMS\u5de5\u5177\u5982yum \u901a\u8fc7\u4e92\u8054\u7f51\u8bbf\u95ee\u670d\u52a1\u5668\uff0c\u8fd9\u4e9b\u670d\u52a1\u5668\u79f0\u4e3a\u4ed3\u5e93(repository)\uff0c\u53ef\u4ee5\u7528PMS\u5de5\u5177\u6765\u641c\u7d22\u65b0\u7684\u8f6f\u4ef6\u5305\uff0c\u6216\u8005\u662f\u66f4\u65b0\u7cfb\u7edf\u4e0a\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u3002\u4e0b\u9762\u4f7f\u7528yum \u5206\u522b\u67e5\u627e\u4e09\u4e2a\u4ed3\u5e93:base, updates, extras\u4ee5\u53ca\u5bf9\u5e94\u7684\u670d\u52a1\u5668\u5730\u5740\uff0c \u4e0eyum\u6709\u5173\u914d\u7f6e\uff0c\u662f\u901a\u8fc7\/etc\/yum.conf\u6587\u4ef6\u3002<\/p>\n

\"\"<\/p>\n

(1) \u7528yum \u5b89\u88c5\u8f6f\u4ef6\u5305\u5f88\u7b80\u5355\uff0c\u4f8b\u5982\u5b89\u88c5 xterm\u5305\uff0c\u90fd\u662f\u901a\u8fc7\u8054\u7f51\u5b89\u88c5\u3002<\/p>\n

\"\"<\/p>\n

\u4e5f\u53ef\u4ee5\u624b\u52a8\u4e0b\u8f7drpm\u5b89\u88c5\u6587\u4ef6\u5e76\u7528yum\u5b89\u88c5\uff0c\u8fd9\u53eb\u672c\u5730\u5b89\u88c5\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n

yum localinstall package_name.rpm<\/pre>\n

\u5bf9\u4e8erpm\u5305\uff0c\u4e00\u822c\u90fd\u662f\u7528rpm\u5de5\u5177\u6765\u5b89\u88c5\uff0c\u5982\u4e0b\u5b89\u88c5mysql\u7684rpm\u5305\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n

\"\"<\/p>\n

(2) \u7528yum \u66f4\u65b0\u8f6f\u4ef6<\/p>\n

\u8981\u5217\u51fa\u6240\u6709\u5df2\u5b89\u88c5\u5305\u7684\u53ef\u7528\u66f4\u65b0\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n

\"\"<\/p>\n

\u5982\u679c\u4e0a\u9762\u6ca1\u6709\u8f93\u51fa\uff0c\u8bf4\u660e\u4e0d\u9700\u8981\u6709\u4efb\u4f55\u66f4\u65b0,\u4f8b\u5982\u66f4\u65b0ModemManager\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n

\"\"<\/p>\n

\u5982\u679c\u8981\u66f4\u65b0\u6240\u6709\uff0c\u5219\u4f7f\u7528\u547d\u4ee4 yum updates<\/p>\n

(3) \u7528yum\u5378\u8f7d\u8f6f\u4ef6<\/p>\n

yum\u5728\u5378\u8f7d\u8f6f\u4ef6\u5305\uff0c\u5305\u62ec\u662f\u5426\u4fdd\u7559\u8f6f\u4ef6\u5305\u7684\u6570\u636e\u548c\u914d\u7f6e\u6587\u4ef6\u3002\u53ea\u5220\u9664\u8f6f\u4ef6\u5305\u800c\u4fdd\u7559\u8f6f\u4ef6\u5305\u7684\u6570\u636e\u548c\u914d\u7f6e\u6587\u4ef6\uff0c\u547d\u4ee4\u5982\u4e0b:<\/p>\n

yum remove package_name<\/pre>\n

\u8981\u5220\u9664\u8f6f\u4ef6\u5305\u548c\u5b83\u6240\u6709\u6587\u4ef6\uff0c\u5c31\u7528erase\u9009\u9879,\u4e0b\u9762\u5220\u9664xterm\u8f6f\u4ef6\u5305\uff0c\u4ee5\u53ca\u8f6f\u4ef6\u5305\u6570\u636e\u548c\u914d\u7f6e\u6587\u4ef6<\/p>\n

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

\u8f6f\u4ef6\u5305\u901a\u5e38\u4f1a\u4f9d\u8d56\u5176\u4ed6\u7684\u5305\uff0c\u4e3a\u4e86\u524d\u8005\u80fd\u591f\u6b63\u5e38\u8fd0\u884c\uff0c\u8865\u4f9d\u8d56\u7684\u5305\u5fc5\u987b\u63d0\u524d\u5b89\u88c5\u5728\u7cfb\u7edf\u4e2d\u3002PMS\u5de5\u5177\u5c06\u4f1a\u68c0\u6d4b\u8fd9\u4e9b\u4f9d\u8d56\u5173\u7cfb […]<\/p>\n","protected":false},"author":310,"featured_media":228169,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-228146","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\/228146","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\/310"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=228146"}],"version-history":[{"count":14,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/228146\/revisions"}],"predecessor-version":[{"id":228236,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/228146\/revisions\/228236"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/228169"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=228146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=228146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=228146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}