{"id":481,"date":"2020-05-15T20:05:54","date_gmt":"2020-05-15T12:05:54","guid":{"rendered":"http:\/\/www.luyouli.com\/?p=481"},"modified":"2020-05-15T20:05:54","modified_gmt":"2020-05-15T12:05:54","slug":"yum%e4%b8%ad%e6%96%ad%e7%bb%b4%e4%bf%ae","status":"publish","type":"post","link":"https:\/\/www.luyouli.com\/?p=481","title":{"rendered":"yum\u4e2d\u65ad\u7ef4\u4fee"},"content":{"rendered":"\n<p>\u6700\u8fd1\u53d1\u751f\u4e86\u4e00\u4ef6\u975e\u5e38\u86cb\u75bc\u7684\u4e8b\u60c5\uff0cyum\u5347\u7ea7\u670d\u52a1\u5668\u5462\uff0c\u7ed3\u679c\u65ad\u7f51\u4e86\uff0c\u7136\u540eyum\u5c31\u53cd\u590d\u62a5\u9519\uff0c\u7ecf\u8fc7\u5404\u79cd\u8c37\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u6b4c\u7ec8\u4e8e\u5728\u67d0\u4e2a\u4e0d\u77e5\u540d\u7684\u5c0f\u89d2\u843d\u627e\u5230\u6b63\u786e\u7684\u89e3\u51b3\u529e\u6cd5\u3002<\/p>\n\n\n\n<p>\u5148\u770b\u770b\u6211\u7684\u62a5\u9519\uff08PS\uff1a\u8fd9\u5df2\u7ecf\u662f\u4fee\u590d\u8fc7\u4e00\u4e2a\u7684\u4e86\uff0c\u5e94\u8be5\u662f24\u4e2a\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1508\" height=\"541\" src=\"https:\/\/www.luyouli.com\/wp-content\/uploads\/2020\/05\/image.png\" alt=\"\" class=\"wp-image-482\"\/><\/figure>\n\n\n\n<p>** \u53d1\u73b0 23 \u4e2a\u5df2\u5b58\u5728\u7684 RPM \u6570\u636e\u5e93\u95ee\u9898\uff0c &#8216;yum check&#8217; \u8f93\u51fa\u5982\u4e0b\uff1a<\/p>\n\n\n<p><!--more--><\/p>\n\n\n<p>\u5c31\u4e0a\u9762\u8fd9\u53e5\u8bdd\uff0c\u6211\u641c\u4e86\u5341\u51e0\u7bc7\u6587\u7ae0\u90fd\u662f\u4e00\u4e2a\u5957\u8def\uff0c\u4f46\u662f\u8fd9\u4e2a\u5957\u8def\u6839\u672c\u4e0d\u597d\u4f7f\uff0c\u6b63\u786e\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p>1\u3001\u5b89\u88c5yum-complete-transaction<\/p>\n\n\n\n<p># yum install yum-utils<\/p>\n\n\n\n<p>2\u3001\u8fd0\u884cyum-complete-transaction<\/p>\n\n\n\n<p># yum-complete-transaction \u2013cleanup-only<\/p>\n\n\n\n<p>3\u3001\u6e05\u9664\u91cd\u590d\u7684\u5305<\/p>\n\n\n\n<p># package-cleanup &#8211;dupes<\/p>\n\n\n\n<p>4\u3001\u6e05\u9664\u635f\u574f\u7684\u5305<\/p>\n\n\n\n<p># package-cleanup &#8211;problems<\/p>\n\n\n\n<p>5\u3001\u518d\u4e00\u6b21\u7684\u66f4\u65b0<\/p>\n\n\n\n<p>yum update<\/p>\n\n\n\n<p>\u5982\u679c\u8fd8\u4e0d\u597d\uff0c\u90a3\u5c31\u7ee7\u7eed\u5f80\u4e0b\u770b<\/p>\n\n\n\n<p>6\u3001\u5220\u9664\u591a\u4f59\u7684\u5305\uff08\u8fd9\u624d\u662f\u89e3\u51b3\u95ee\u9898\u7684\u6700\u7ec8\u529e\u6cd5\uff09<\/p>\n\n\n\n<p>\u6309\u7167\u62a5\u9519\u7684\u63d0\u793a\uff0c\u5220\u9664\u62a5\u9519\u540e\u9762\u7684\u90a3\u4e2a\u526f\u672c<\/p>\n\n\n\n<p># yum remove NetworkManager-1.18.0-5.el7_7.2.x86_64 NetworkManager-glib-1.18.0-5.el7_7.2.x86_64 NetworkManager-libnm-1.18.0-5.el7_7.2.x86_64 avahi-0.6.31-19.el7.x86_64 avahi-glib-0.6.31-19.el7.x86_64 avahi-libs-0.6.31-19.el7.x86_64 cryptsetup-libs-2.0.3-5.el7.x86_64 daxctl-libs-64.1-2.el7.x86_64 kernel-headers-3.10.0-1062.18.1.el7.x86_64 kernel-tools-3.10.0-1062.18.1.el7.x86_64 kernel-tools-libs-3.10.0-1062.18.1.el7.x86_64 libblockdev-utils-2.18-4.el7.x86_64 libreport-2.1.11-43.el7.centos.x86_64 libreport-filesystem-2.1.11-43.el7.centos.x86_64 libreport-python-2.1.11-43.el7.centos.x86_64 libreport-web-2.1.11-43.el7.centos.x86_64 python-2.7.5-86.el7.x86_64 python-libs-2.7.5-86.el7.x86_64 python3-3.6.8-10.el7.x86_64 python3-libs-3.6.8-10.el7.x86_64 systemtap-devel-4.0-10.el7_7.x86_64 systemtap-client-4.0-10.el7_7.x86_64 systemtap-runtime-4.0-10.el7_7.x86_64<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1178\" height=\"579\" src=\"https:\/\/www.luyouli.com\/wp-content\/uploads\/2020\/05\/image-1.png\" alt=\"\" class=\"wp-image-486\"\/><\/figure>\n\n\n\n<p>\u76f4\u63a5\u6309y\u6267\u884c\u5c31\u884c<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"783\" height=\"496\" src=\"https:\/\/www.luyouli.com\/wp-content\/uploads\/2020\/05\/image-2.png\" alt=\"\" class=\"wp-image-487\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1885\" height=\"663\" src=\"https:\/\/www.luyouli.com\/wp-content\/uploads\/2020\/05\/image-3.png\" alt=\"\" class=\"wp-image-489\"\/><\/figure>\n\n\n\n<p>7\u3001\u91cd\u65b0update<\/p>\n\n\n\n<p>\u518d\u4e00\u6b21\u7684\u6267\u884cupdate\u547d\u4ee4\uff0c\u5c06\u6240\u6709\u7684\u8f6f\u4ef6\u5305\u90fd\u88c5\u4e0a<\/p>\n\n\n\n<p># yum update<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"619\" height=\"481\" src=\"https:\/\/www.luyouli.com\/wp-content\/uploads\/2020\/05\/image-4.png\" alt=\"\" class=\"wp-image-490\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"558\" height=\"239\" src=\"https:\/\/www.luyouli.com\/wp-content\/uploads\/2020\/05\/image-5.png\" alt=\"\" class=\"wp-image-491\"\/><\/figure>\n\n\n\n<p>8\u3001\u9a8c\u8bc1\u662f\u5426\u6062\u590d<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"218\" src=\"https:\/\/www.luyouli.com\/wp-content\/uploads\/2020\/05\/image-6.png\" alt=\"\" class=\"wp-image-492\"\/><\/figure>\n\n\n\n<p>\u603b\u7ed3\u4e00\u4e0b\uff1a<\/p>\n\n\n\n<p>\u6700\u91cd\u8981\u7684\u4e00\u6b65\u5c31\u662f\u7b2c6\u6b65\uff0c\u641e\u5b9a\u4e86\u8fd9\u4e00\u6b65\u5c31OK\u4e86\uff0c\u6709\u65f6\u5019\u7284\u89d2\u65ee\u65ef\u624d\u6709\u597d\u4e1c\u4e1c\uff0c\u5c31\u8ddf\u5c0f\u5403\u4e00\u6837\uff0c\u7284\u89d2\u65ee\u65ef\u7684\u5c0f\u5403\u624d\u6700\u7f8e\u5473<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u53d1\u751f\u4e86\u4e00\u4ef6\u975e\u5e38\u86cb\u75bc\u7684\u4e8b\u60c5\uff0cyum\u5347\u7ea7\u670d\u52a1\u5668\u5462\uff0c\u7ed3\u679c\u65ad\u7f51\u4e86\uff0c\u7136\u540eyum\u5c31\u53cd\u590d\u62a5\u9519\uff0c\u7ecf\u8fc7\u5404\u79cd\u8c37\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-481","post","type-post","status-publish","format-standard","hentry","category-kernel"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"views":3871,"_links":{"self":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts\/481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=481"}],"version-history":[{"count":6,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts\/481\/revisions"}],"predecessor-version":[{"id":495,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts\/481\/revisions\/495"}],"wp:attachment":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}