{"id":18467,"date":"2014-09-21T06:49:04","date_gmt":"2014-09-20T22:49:04","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/09\/21\/centos-6-5-%e5%8d%87%e7%b4%9a%e5%88%b0-centos-7\/"},"modified":"2021-03-18T17:24:04","modified_gmt":"2021-03-18T09:24:04","slug":"centos-6-5-%e5%8d%87%e7%b4%9a%e5%88%b0-centos-7","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/09\/21\/centos-6-5-%e5%8d%87%e7%b4%9a%e5%88%b0-centos-7\/","title":{"rendered":"CentOS 6.5 \u5347\u7d1a\u5230 CentOS 7"},"content":{"rendered":"<p>\u4e00\u822c\u500b\u4eba\u4f7f\u7528 CentOS Linux \u7684\u7fd2\u6163\uff0c\u5c0f\u7248\u672c\u9593\u7684\u5347\u7d1a 6.4&#8211;&gt; 6.5 \u5c31\u76f4\u63a5\u4f7f\u7528 yum update \u4f86\u5347\u7d1a\uff0c\u5927\u7248\u672c\u9593\u7684\u5347\u7d1a\u901a\u5e38\u6703\u5148\u5099\u4efd\u8cc7\u6599\u53ca\u8a2d\u5b9a\u6a94\u5f8c\uff0c\u91cd\u65b0\u5b89\u88dd\uff0c\u6bd4\u8f03\u5c11\u7528\u5347\u7d1a\u7684\u65b9\u5f0f\u8655\u7406\uff0c\u56e0\u70ba\u5347\u7d1a\u53ef\u80fd\u6703\u6709\u4e9b\u98a8\u96aa\uff0c\u5012\u4e0d\u5982\u91cd\u65b0\u5b89\u88dd\u4f86\u7684\u5b89\u5168\u4e9b\u3002<br \/>\u5e95\u4e0b\u6587\u7ae0\u53c3\u8003\uff1a<a href=\"http:\/\/wiki.centos.org\/zh-tw\/TipsAndTricks\/CentOSUpgradeTool\" target=\"_blank\" rel=\"noopener noreferrer\">zh-tw\/TipsAndTricks\/CentOSUpgradeTool &#8211; CentOS Wiki<\/a><br \/>1. \u5728\u5957\u4ef6\u5eab\u52a0\u5165\u8a2d\u5b9a\u6a94<br \/># <span style=\"color: #ff0000\">vim \/etc\/yum.repos.d\/upgradetool.repo<\/span><br \/><span style=\"color: #0000ff\">[upg]<\/span><br \/><span style=\"color: #0000ff\">name=CentOS-$releasever &#8211; Upgrade Tool<\/span><br \/><span style=\"color: #0000ff\">baseurl=http:\/\/dev.centos.org\/centos\/6\/upg\/x86_64\/<\/span><br \/><span style=\"color: #0000ff\">gpgcheck=1<\/span><br \/><span style=\"color: #0000ff\">enabled=1<\/span><br \/><span style=\"color: #0000ff\">gpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-6<\/span><\/p>\n<p>2. \u66f4\u65b0\u5957\u4ef6\u5132\u5b58\u5eab<br \/># <span style=\"color: #ff0000\">yum update<\/span>[@more@]3. \u5b89\u88dd\u5347\u7d1a\u6240\u9700\u5957\u4ef6<br \/># <span style=\"color: #ff0000\">yum install redhat-upgrade-tool preupgrade-assistant-contents<\/span><\/p>\n<p>4. \u5217\u51fa\u5347\u7d1a\u4e8b\u524d\u52a9\u624b\u7684\u6240\u6709\u5167\u5bb9<br \/># <span style=\"color: #ff0000\">preupg -l<\/span><br \/>CentOS6_7<\/p>\n<p>5. \u532f\u5165 CentOS 7 \u91d1\u9470<br \/># <span style=\"color: #ff0000\">rpm &#8211;import http:\/\/mirror.centos.org\/centos\/RPM-GPG-KEY-CentOS-7<\/span><\/p>\n<p>6. \u9032\u884c\u5347\u7d1a<br \/># <span style=\"color: #ff0000\">centos-upgrade-tool-cli &#8211;network 7 &#8211;instrepo=ftp:\/\/140.111.74.109\/CentOS\/7\/os\/x86_64\/<br \/><\/span><br \/><a id=\"res_2662210\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-2662210.png\"><img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-2662210.png\" border=\"0\" alt=\"\" \/><\/a><\/p>\n<p>7. \u91cd\u65b0\u958b\u6a5f<br \/># <span style=\"color: #ff0000\">init 6<\/span><br \/><a id=\"res_2662209\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-2662209.png\"><img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-2662209.png\" border=\"0\" alt=\"\" \/><\/a><\/p>\n<p>8. \u7d93\u904e\u6f2b\u9577\u7684\u5347\u7d1a<br \/><a id=\"res_2662208\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-2662208.png\"><img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-2662208.png\" border=\"0\" alt=\"\" \/><\/a><\/p>\n<p>\u66f4\u65b0\u524d<br \/># <span style=\"color: #ff0000\">cat \/etc\/redhat-release<\/span><br \/><span style=\"color: #0000ff\">CentOS release 6.5 (Final)<\/span><\/p>\n<p>\u66f4\u65b0\u5f8c<br \/># <span style=\"color: #ff0000\">cat \/etc\/redhat-release<\/span><br \/><span style=\"color: #0000ff\">CentOS Linux release 7.0.1406 (Core)<\/span><\/p>\n<p>\u611f\u60f3\uff1a<br \/>1. \u5347\u7d1a\u5b8c\u4e4b\u5f8c\u4e26\u6c92\u6709\u4ed4\u7d30\u53bb\u9a57\u8b49\u6240\u6709\u7684\u670d\u52d9\u662f\u5426\u90fd\u80fd\u6b63\u5e38\u57f7\u884c\uff0c\u901a\u5e38\u5982\u679c\u6709\u4f7f\u7528\u5230\u7b2c\u4e09\u65b9\u5957\u4ef6\u5eab\uff0c\u5982\uff1arpmforge \/ epel &#8230;\uff0c\u6216\u8005\u662f\u662f\u4f7f\u7528\u684c\u9762\u74b0\u5883\uff0c\u5982\uff1aGNOME \/ KDE&#8230;.\uff0c\u5931\u6557\u7684\u6a5f\u7387\u6703\u5f88\u5927\u3002<br \/>2.\u00a0\u5347\u7d1a\u6240\u82b1\u7684\u6642\u9593\u4e26\u6c92\u6709\u6bd4\u91cd\u65b0\u5b89\u88dd\u5c11\uff0c\u6240\u4ee5\u9084\u662f\u91cd\u65b0\u5b89\u88dd\u65b0\u7684\u7cfb\u7d71\u6bd4\u8f03\u5be6\u5728\uff0c\u4e5f\u53ef\u4ee5\u9806\u4fbf\u628a\u7cfb\u7d71\u505a\u4e00\u4e0b\u6e05\u7406\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u822c\u500b\u4eba\u4f7f\u7528 CentOS Linux \u7684\u7fd2\u6163\uff0c\u5c0f\u7248\u672c\u9593\u7684\u5347\u7d1a 6.4&#8211;&gt; 6.5 \u5c31\u76f4\u63a5\u4f7f &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/09\/21\/centos-6-5-%e5%8d%87%e7%b4%9a%e5%88%b0-centos-7\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008CentOS 6.5 \u5347\u7d1a\u5230 CentOS 7\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117],"tags":[],"class_list":["post-18467","post","type-post","status-publish","format-standard","hentry","category-c-78462"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["517910"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18467"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=18467"}],"version-history":[{"count":1,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18467\/revisions"}],"predecessor-version":[{"id":20109,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18467\/revisions\/20109"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=18467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=18467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=18467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}