{"id":43436,"date":"2024-10-05T17:01:40","date_gmt":"2024-10-05T09:01:40","guid":{"rendered":"https:\/\/server.hk\/cnblog\/43436\/"},"modified":"2024-10-05T17:01:41","modified_gmt":"2024-10-05T09:01:41","slug":"centos-8-%e8%bd%89%e6%8f%9b%e7%82%ba-centos-stream-%e5%85%b7%e9%ab%94%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/43436\/","title":{"rendered":"CentOS 8 \u8f49\u63db\u70ba CentOS Stream \u5177\u9ad4\u65b9\u6cd5"},"content":{"rendered":"<h1 id=\"centos-8-%e8%bd%89%e6%8f%9b%e7%82%ba-centos-stream-%e5%85%b7%e9%ab%94%e6%96%b9%e6%b3%95-FsnXtMWWjw\">CentOS 8 \u8f49\u63db\u70ba CentOS Stream \u5177\u9ad4\u65b9\u6cd5<\/h1>\n<p>\u96a8\u8457 CentOS 8 \u7684\u751f\u547d\u9031\u671f\u7d50\u675f\uff0c\u8a31\u591a\u7528\u6236\u958b\u59cb\u8003\u616e\u5c07\u5176\u7cfb\u7d71\u8f49\u63db\u70ba CentOS Stream\u3002CentOS Stream \u662f\u4e00\u500b\u6efe\u52d5\u66f4\u65b0\u7684\u767c\u884c\u7248\uff0c\u63d0\u4f9b\u4e86\u6bd4\u50b3\u7d71 CentOS \u66f4\u5feb\u7684\u66f4\u65b0\u548c\u65b0\u529f\u80fd\u3002\u672c\u6587\u5c07\u8a73\u7d30\u4ecb\u7d39\u5982\u4f55\u5c07 CentOS 8 \u8f49\u63db\u70ba CentOS Stream \u7684\u5177\u9ad4\u65b9\u6cd5\u3002<\/p>\n<h2 id=\"%e7%82%ba%e4%bb%80%e9%ba%bc%e9%81%b8%e6%93%87-centos-stream%ef%bc%9f-FsnXtMWWjw\">\u70ba\u4ec0\u9ebc\u9078\u64c7 CentOS Stream\uff1f<\/h2>\n<p>CentOS Stream \u7684\u4e3b\u8981\u512a\u52e2\u5728\u65bc\u5b83\u7684\u6efe\u52d5\u66f4\u65b0\u7279\u6027\uff0c\u9019\u610f\u5473\u8457\u7528\u6236\u53ef\u4ee5\u5728\u4e0d\u5fc5\u7b49\u5f85\u4e0b\u4e00\u500b\u4e3b\u8981\u7248\u672c\u7684\u60c5\u6cc1\u4e0b\uff0c\u7372\u5f97\u6700\u65b0\u7684\u529f\u80fd\u548c\u5b89\u5168\u66f4\u65b0\u3002\u6b64\u5916\uff0cCentOS Stream \u4e5f\u88ab\u8996\u70ba Red Hat Enterprise Linux (RHEL) \u7684\u9810\u89bd\u7248\uff0c\u9019\u4f7f\u5f97\u958b\u767c\u8005\u548c\u7cfb\u7d71\u7ba1\u7406\u54e1\u80fd\u5920\u63d0\u524d\u9ad4\u9a57\u5373\u5c07\u5230\u4f86\u7684\u529f\u80fd\u3002<\/p>\n<h2 id=\"%e8%bd%89%e6%8f%9b%e5%89%8d%e7%9a%84%e6%ba%96%e5%82%99-FsnXtMWWjw\">\u8f49\u63db\u524d\u7684\u6e96\u5099<\/h2>\n<p>\u5728\u9032\u884c\u8f49\u63db\u4e4b\u524d\uff0c\u5efa\u8b70\u7528\u6236\u5099\u4efd\u91cd\u8981\u6578\u64da\u548c\u914d\u7f6e\u6587\u4ef6\u3002\u9019\u6a23\u53ef\u4ee5\u5728\u8f49\u63db\u904e\u7a0b\u4e2d\u51fa\u73fe\u554f\u984c\u6642\uff0c\u8f15\u9b06\u6062\u5fa9\u7cfb\u7d71\u3002<\/p>\n<h3 id=\"%e5%82%99%e4%bb%bd%e6%95%b8%e6%93%9a-FsnXtMWWjw\">\u5099\u4efd\u6578\u64da<\/h3>\n<ul>\n<li>\u4f7f\u7528 <code>rsync<\/code> \u6216 <code>tar<\/code> \u547d\u4ee4\u5099\u4efd\u91cd\u8981\u6587\u4ef6\u3002<\/li>\n<li>\u78ba\u4fdd\u6240\u6709\u7684\u6578\u64da\u5eab\u90fd\u5df2\u7d93\u5099\u4efd\u3002<\/li>\n<\/ul>\n<h2 id=\"%e8%bd%89%e6%8f%9b%e6%ad%a5%e9%a9%9f-FsnXtMWWjw\">\u8f49\u63db\u6b65\u9a5f<\/h2>\n<p>\u4ee5\u4e0b\u662f\u5c07 CentOS 8 \u8f49\u63db\u70ba CentOS Stream \u7684\u5177\u9ad4\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e6%9b%b4%e6%96%b0%e7%b3%bb%e7%b5%b1-FsnXtMWWjw\">1. \u66f4\u65b0\u7cfb\u7d71<\/h3>\n<p>\u9996\u5148\uff0c\u78ba\u4fdd\u60a8\u7684 CentOS 8 \u7cfb\u7d71\u662f\u6700\u65b0\u7684\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9032\u884c\u66f4\u65b0\uff1a<\/p>\n<pre><code>sudo dnf update -y<\/code><\/pre>\n<h3 id=\"2-%e5%ae%89%e8%a3%9d%e5%bf%85%e8%a6%81%e7%9a%84%e5%b7%a5%e5%85%b7-FsnXtMWWjw\">2. \u5b89\u88dd\u5fc5\u8981\u7684\u5de5\u5177<\/h3>\n<p>\u5728\u8f49\u63db\u904e\u7a0b\u4e2d\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u4e00\u4e9b\u5de5\u5177\u4f86\u5354\u52a9\u64cd\u4f5c\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88dd\uff1a<\/p>\n<pre><code>sudo dnf install -y centos-release-stream<\/code><\/pre>\n<h3 id=\"3-%e8%bd%89%e6%8f%9b%e5%88%b0-centos-stream-FsnXtMWWjw\">3. \u8f49\u63db\u5230 CentOS Stream<\/h3>\n<p>\u57f7\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u9032\u884c\u8f49\u63db\uff1a<\/p>\n<pre><code>sudo dnf swap centos-{linux,stream}-repos -y<\/code><\/pre>\n<p>\u9019\u689d\u547d\u4ee4\u6703\u5c07 CentOS \u7684\u5b58\u5132\u5eab\u5207\u63db\u5230 CentOS Stream \u7684\u5b58\u5132\u5eab\u3002<\/p>\n<h3 id=\"4-%e6%9b%b4%e6%96%b0%e7%b3%bb%e7%b5%b1%e4%bb%a5%e6%87%89%e7%94%a8%e6%9b%b4%e6%94%b9-FsnXtMWWjw\">4. \u66f4\u65b0\u7cfb\u7d71\u4ee5\u61c9\u7528\u66f4\u6539<\/h3>\n<p>\u8f49\u63db\u5b8c\u6210\u5f8c\uff0c\u60a8\u9700\u8981\u518d\u6b21\u66f4\u65b0\u7cfb\u7d71\u4ee5\u61c9\u7528\u65b0\u7684\u5b58\u5132\u5eab\uff1a<\/p>\n<pre><code>sudo dnf distro-sync -y<\/code><\/pre>\n<h3 id=\"5-%e9%87%8d%e5%95%9f%e7%b3%bb%e7%b5%b1-FsnXtMWWjw\">5. \u91cd\u555f\u7cfb\u7d71<\/h3>\n<p>\u6700\u5f8c\uff0c\u91cd\u555f\u7cfb\u7d71\u4ee5\u78ba\u4fdd\u6240\u6709\u66f4\u6539\u751f\u6548\uff1a<\/p>\n<pre><code>sudo reboot<\/code><\/pre>\n<h2 id=\"%e6%aa%a2%e6%9f%a5%e8%bd%89%e6%8f%9b%e7%b5%90%e6%9e%9c-FsnXtMWWjw\">\u6aa2\u67e5\u8f49\u63db\u7d50\u679c<\/h2>\n<p>\u91cd\u555f\u5f8c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6aa2\u67e5\u7cfb\u7d71\u7248\u672c\uff0c\u4ee5\u78ba\u4fdd\u6210\u529f\u8f49\u63db\u70ba CentOS Stream\uff1a<\/p>\n<pre><code>cat \/etc\/redhat-release<\/code><\/pre>\n<p>\u5982\u679c\u986f\u793a\u7684\u7248\u672c\u5305\u542b &#8220;CentOS Stream&#8221;\uff0c\u5247\u8868\u793a\u8f49\u63db\u6210\u529f\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-FsnXtMWWjw\">\u7e3d\u7d50<\/h2>\n<p>\u5c07 CentOS 8 \u8f49\u63db\u70ba CentOS Stream \u662f\u4e00\u500b\u76f8\u5c0d\u7c21\u55ae\u7684\u904e\u7a0b\uff0c\u53ea\u9700\u5e7e\u500b\u547d\u4ee4\u5373\u53ef\u5b8c\u6210\u3002\u9019\u4e00\u8f49\u63db\u4e0d\u50c5\u80fd\u5920\u8b93\u7528\u6236\u7372\u5f97\u6700\u65b0\u7684\u529f\u80fd\u548c\u5b89\u5168\u66f4\u65b0\uff0c\u9084\u80fd\u5920\u63d0\u524d\u9ad4\u9a57 RHEL \u7684\u65b0\u7279\u6027\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u548c\u6301\u7e8c\u66f4\u65b0\u7684\u7528\u6236\u4f86\u8aaa\uff0cCentOS Stream \u662f\u4e00\u500b\u4e0d\u932f\u7684\u9078\u64c7\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u9ad8\u6548\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u6eff\u8db3\u4e0d\u540c\u9700\u6c42\u7684\u7528\u6236\u3002\u7121\u8ad6\u662f\u4f01\u696d\u9084\u662f\u500b\u4eba\u7528\u6236\uff0c\u6211\u5011\u7684 <a href=\"https:\/\/server.hk\">\u4e91\u670d\u52a1\u5668<\/a> \u90fd\u80fd\u70ba\u60a8\u63d0\u4f9b\u7a69\u5b9a\u7684\u6027\u80fd\u548c\u5b89\u5168\u7684\u74b0\u5883\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3\u5982\u4f55\u5c07 CentOS 8 \u8f49\u63db\u70ba CentOS Stream \u7684\u5177\u9ad4\u6b65\u9a5f\uff0c\u78ba\u4fdd\u7cfb\u7d71\u5e73\u7a69\u904e\u6e21\u8207\u6301\u7e8c\u66f4\u65b0\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-43436","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/43436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=43436"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/43436\/revisions"}],"predecessor-version":[{"id":43437,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/43436\/revisions\/43437"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=43436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=43436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=43436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}