{"id":1992,"date":"2022-12-02T16:04:54","date_gmt":"2022-12-02T08:04:54","guid":{"rendered":"https:\/\/blog.kingsbestone.com\/?p=1992"},"modified":"2023-01-18T10:49:58","modified_gmt":"2023-01-18T02:49:58","slug":"centos8%e6%8d%a2%e6%ba%90%e6%95%99%e7%a8%8b-%e8%85%be%e8%ae%af%e4%ba%91","status":"publish","type":"post","link":"https:\/\/blog.kingsbestone.com\/?p=1992","title":{"rendered":"Centos8\u6362\u6e90\u6559\u7a0b-\u817e\u8baf\u4e91"},"content":{"rendered":"<p><span style=\"font-family: 'comic sans ms', sans-serif;\">Cento8\u9ed8\u8ba4\u7684YUM\u6e90\u90fd\u662f\u6d77\u5916\u7684\u670d\u52a1\u5668\u7684\uff0c\u56fd\u5185\u8bbf\u95ee\u7f13\u6162\u6216\u8005\u5e72\u8106\u65e0\u6cd5\u8bbf\u95ee\uff0c\u4e3a\u4e86\u80fd\u6b63\u5e38\u4f7f\u7528\uff0c\u6362\u6e90\u662f\u5fc5\u987b\u7684\uff0c\u540c\u65f6\u4e3a\u4e86\u4fdd\u8bc1\u8f6f\u4ef6\u7684\u4e30\u5bcc\u6027\uff0c\u6dfb\u52a0EPEL\u6269\u5c55\u6e90\u4f1a\u51cf\u5c11\u5f88\u591a\u4e0d\u5fc5\u8981\u7684\u9ebb\u70e6\u3002<\/span><\/p>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u4e0b\u9762\u7ed9Centos8\u6362\u817e\u8baf\u4e91\u7684YUM\u6e90\u548cEPEL\u6269\u5c55\u6e90\uff0c\u817e\u8baf\u4e91\u7684\u6bd4\u963f\u91cc\u4e91\u7684\u6e90\u5feb\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">1.\u5907\u4efd\u539f\u6765\u7684YUM\u6e90\uff1a<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">mv \/etc\/yum.repos.d\/CentOS-Linux-AppStream.repo \/etc\/yum.repos.d\/CentOS-Linux-AppStream.repo.backup\r\nmv \/etc\/yum.repos.d\/CentOS-Linux-BaseOS.repo \/etc\/yum.repos.d\/CentOS-Linux-BaseOS.repo.backup\r\nmv \/etc\/yum.repos.d\/CentOS-Linux-ContinuousRelease.repo \/etc\/yum.repos.d\/CentOS-Linux-ContinuousRelease.repo.backup\r\nmv \/etc\/yum.repos.d\/CentOS-Linux-Debuginfo.repo \/etc\/yum.repos.d\/CentOS-Linux-Debuginfo.repo.backup\r\nmv \/etc\/yum.repos.d\/CentOS-Linux-Devel.repo \/etc\/yum.repos.d\/CentOS-Linux-Devel.repo.backup\r\nmv \/etc\/yum.repos.d\/CentOS-Linux-Extras.repo \/etc\/yum.repos.d\/CentOS-Linux-Extras.repo.backup\r\nmv \/etc\/yum.repos.d\/CentOS-Linux-FastTrack.repo \/etc\/yum.repos.d\/CentOS-Linux-FastTrack.repo.backup\r\nmv \/etc\/yum.repos.d\/CentOS-Linux-HighAvailability.repo \/etc\/yum.repos.d\/CentOS-Linux-HighAvailability.repo.backup\r\nmv \/etc\/yum.repos.d\/CentOS-Linux-Media.repo \/etc\/yum.repos.d\/CentOS-Linux-Media.repo.backup\r\nmv \/etc\/yum.repos.d\/CentOS-Linux-Plus.repo \/etc\/yum.repos.d\/CentOS-Linux-Plus.repo.backup\r\nmv \/etc\/yum.repos.d\/CentOS-Linux-PowerTools.repo \/etc\/yum.repos.d\/CentOS-Linux-PowerTools.repo.backup\r\nmv \/etc\/yum.repos.d\/CentOS-Linux-Sources.repo \/etc\/yum.repos.d\/CentOS-Linux-Sources.repo.backup<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2.\u521b\u5efaEPEL\u6269\u5c55\u6e90\u6587\u4ef6<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">touch epel.repo\r\ntouch epel-modular.repo\r\ntouch epel-playground.repo\r\ntouch epel-testing.repo\r\ntouch epel-testing-modular.repo<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">3.\u66ff\u6362\u817e\u8baf\u4e91\u7684YUM\u6e90\u548cEPEL\u6269\u5c55\u6e90\uff1a<\/span><\/p>\n<ul>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u817e\u8baf\u4e91\u6e90\u5b98\u7f51\uff1a<a href=\"http:\/\/mirrors.cloud.tencent.com\/\" target=\"_blank\" rel=\"noopener\">http:\/\/mirrors.cloud.tencent.com\/<\/a><\/span><\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">cat &gt; \/etc\/yum.repos.d\/CentOS-Linux-AppStream.repo &lt;&lt;'EOF'\r\n# CentOS-Linux-AppStream.repo\r\n#\r\n# The mirrorlist system uses the connecting IP address of the client and the\r\n# update status of each mirror to pick current mirrors that are geographically\r\n# close to the client.  You should use this for CentOS updates unless you are\r\n# manually picking other mirrors.\r\n#\r\n# If the mirrorlist does not work for you, you can try the commented out\r\n# baseurl line instead.\r\n\r\n[appstream]\r\nname=CentOS Linux 8.5.2111 - AppStream\r\n#mirrorlist=http:\/\/mirrorlist.centos.org\/?release=8.5.2111&amp;arch=$basearch&amp;repo=AppStream&amp;infra=$infra\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/centos-vault\/8.5.2111\/AppStream\/$basearch\/os\/\r\ngpgcheck=1\r\nenabled=1\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\r\n\r\nEOF\r\n\r\ncat &gt; \/etc\/yum.repos.d\/CentOS-Linux-BaseOS.repo &lt;&lt;'EOF'\r\n# CentOS-Linux-BaseOS.repo\r\n#\r\n# The mirrorlist system uses the connecting IP address of the client and the\r\n# update status of each mirror to pick current mirrors that are geographically\r\n# close to the client.  You should use this for CentOS updates unless you are\r\n# manually picking other mirrors.\r\n#\r\n# If the mirrorlist does not work for you, you can try the commented out\r\n# baseurl line instead.\r\n\r\n[baseos]\r\nname=CentOS Linux 8.5.2111 - BaseOS\r\n#mirrorlist=http:\/\/mirrorlist.centos.org\/?release=8.5.2111&amp;arch=$basearch&amp;repo=BaseOS&amp;infra=$infra\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/centos-vault\/8.5.2111\/BaseOS\/$basearch\/os\/\r\ngpgcheck=1\r\nenabled=1\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\r\n\r\nEOF\r\n\r\ncat &gt; \/etc\/yum.repos.d\/CentOS-Linux-ContinuousRelease.repo &lt;&lt;'EOF'\r\n# CentOS-Linux-ContinuousRelease.repo\r\n#\r\n# The mirrorlist system uses the connecting IP address of the client and the\r\n# update status of each mirror to pick current mirrors that are geographically\r\n# close to the client.  You should use this for CentOS updates unless you are\r\n# manually picking other mirrors.\r\n#\r\n# If the mirrorlist does not work for you, you can try the commented out\r\n# baseurl line instead.\r\n#\r\n# The Continuous Release (CR) repository contains packages for the next minor\r\n# release of CentOS Linux.  This repository only has content in the time period\r\n# between an upstream release and the official CentOS Linux release.  These\r\n# packages have not been fully tested yet and should be considered beta\r\n# quality.  They are made available for people willing to test and provide\r\n# feedback for the next release.\r\n\r\n[cr]\r\nname=CentOS Linux 8.5.2111 - ContinuousRelease\r\n#mirrorlist=http:\/\/mirrorlist.centos.org\/?release=8.5.2111&amp;arch=$basearch&amp;repo=cr&amp;infra=$infra\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/centos-vault\/8.5.2111\/cr\/$basearch\/os\/\r\ngpgcheck=1\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\r\n\r\nEOF\r\n\r\ncat &gt; \/etc\/yum.repos.d\/CentOS-Linux-Debuginfo.repo &lt;&lt;'EOF'\r\n# CentOS-Linux-Debuginfo.repo\r\n#\r\n# All debug packages are merged into a single repo, split by basearch, and are\r\n# not signed.\r\n\r\n[debuginfo]\r\nname=CentOS Linux 8.5.2111 - Debuginfo\r\nbaseurl=http:\/\/debuginfo.centos.org\/8.5.2111\/$basearch\/\r\ngpgcheck=1\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\r\n\r\nEOF\r\n\r\ncat &gt; \/etc\/yum.repos.d\/CentOS-Linux-Devel.repo &lt;&lt;'EOF'\r\n# CentOS-Linux-Devel.repo\r\n#\r\n# The mirrorlist system uses the connecting IP address of the client and the\r\n# update status of each mirror to pick current mirrors that are geographically\r\n# close to the client.  You should use this for CentOS updates unless you are\r\n# manually picking other mirrors.\r\n#\r\n# If the mirrorlist does not work for you, you can try the commented out\r\n# baseurl line instead.\r\n\r\n[devel]\r\nname=CentOS Linux 8.5.2111 - Devel WARNING! FOR BUILDROOT USE ONLY!\r\n#mirrorlist=http:\/\/mirrorlist.centos.org\/?release=8.5.2111&amp;arch=$basearch&amp;repo=Devel&amp;infra=$infra\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/centos-vault\/8.5.2111\/Devel\/$basearch\/os\/\r\ngpgcheck=1\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\r\n\r\nEOF\r\n\r\ncat &gt; \/etc\/yum.repos.d\/CentOS-Linux-Extras.repo &lt;&lt;'EOF'\r\n# CentOS-Linux-Extras.repo\r\n#\r\n# The mirrorlist system uses the connecting IP address of the client and the\r\n# update status of each mirror to pick current mirrors that are geographically\r\n# close to the client.  You should use this for CentOS updates unless you are\r\n# manually picking other mirrors.\r\n#\r\n# If the mirrorlist does not work for you, you can try the commented out\r\n# baseurl line instead.\r\n\r\n[extras]\r\nname=CentOS Linux 8.5.2111 - Extras\r\n#mirrorlist=http:\/\/mirrorlist.centos.org\/?release=8.5.2111&amp;arch=$basearch&amp;repo=extras&amp;infra=$infra\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/centos-vault\/8.5.2111\/extras\/$basearch\/os\/\r\ngpgcheck=1\r\nenabled=1\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\r\n\r\nEOF\r\n\r\ncat &gt; \/etc\/yum.repos.d\/CentOS-Linux-FastTrack.repo &lt;&lt;'EOF'\r\n# CentOS-Linux-FastTrack.repo\r\n#\r\n# The mirrorlist system uses the connecting IP address of the client and the\r\n# update status of each mirror to pick current mirrors that are geographically\r\n# close to the client.  You should use this for CentOS updates unless you are\r\n# manually picking other mirrors.\r\n#\r\n# If the mirrorlist does not work for you, you can try the commented out\r\n# baseurl line instead.\r\n\r\n[fasttrack]\r\nname=CentOS Linux 8.5.2111 - FastTrack\r\n#mirrorlist=http:\/\/mirrorlist.centos.org\/?release=8.5.2111&amp;arch=$basearch&amp;repo=fasttrack&amp;infra=$infra\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/centos-vault\/8.5.2111\/fasttrack\/$basearch\/os\/\r\ngpgcheck=1\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\r\n\r\nEOF\r\n\r\ncat &gt; \/etc\/yum.repos.d\/CentOS-Linux-HighAvailability.repo &lt;&lt;'EOF'\r\n# CentOS-Linux-HighAvailability.repo\r\n#\r\n# The mirrorlist system uses the connecting IP address of the client and the\r\n# update status of each mirror to pick current mirrors that are geographically\r\n# close to the client.  You should use this for CentOS updates unless you are\r\n# manually picking other mirrors.\r\n#\r\n# If the mirrorlist does not work for you, you can try the commented out\r\n# baseurl line instead.\r\n\r\n[ha]\r\nname=CentOS Linux 8.5.2111 - HighAvailability\r\n#mirrorlist=http:\/\/mirrorlist.centos.org\/?release=8.5.2111&amp;arch=$basearch&amp;repo=HighAvailability&amp;infra=$infra\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/centos-vault\/8.5.2111\/HighAvailability\/$basearch\/os\/\r\ngpgcheck=1\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\r\n\r\nEOF\r\n\r\ncat &gt; \/etc\/yum.repos.d\/CentOS-Linux-Media.repo &lt;&lt;'EOF'\r\n# CentOS-Linux-Media.repo\r\n#\r\n# You can use this repo to install items directly off the installation media.\r\n# Verify your mount point matches one of the below file:\/\/ paths.\r\n\r\n[media-baseos]\r\nname=CentOS Linux 8.5.2111 - Media - BaseOS\r\nbaseurl=file:\/\/\/media\/CentOS\/BaseOS\r\n        file:\/\/\/media\/cdrom\/BaseOS\r\n        file:\/\/\/media\/cdrecorder\/BaseOS\r\ngpgcheck=1\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\r\n\r\n[media-appstream]\r\nname=CentOS Linux 8.5.2111 - Media - AppStream\r\nbaseurl=file:\/\/\/media\/CentOS\/AppStream\r\n        file:\/\/\/media\/cdrom\/AppStream\r\n        file:\/\/\/media\/cdrecorder\/AppStream\r\ngpgcheck=1\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\r\n\r\nEOF\r\n\r\ncat &gt; \/etc\/yum.repos.d\/CentOS-Linux-Plus.repo &lt;&lt;'EOF'\r\n# CentOS-Linux-Plus.repo\r\n#\r\n# The mirrorlist system uses the connecting IP address of the client and the\r\n# update status of each mirror to pick current mirrors that are geographically\r\n# close to the client.  You should use this for CentOS updates unless you are\r\n# manually picking other mirrors.\r\n#\r\n# If the mirrorlist does not work for you, you can try the commented out\r\n# baseurl line instead.\r\n\r\n[plus]\r\nname=CentOS Linux 8.5.2111 - Plus\r\n#mirrorlist=http:\/\/mirrorlist.centos.org\/?release=8.5.2111&amp;arch=$basearch&amp;repo=centosplus&amp;infra=$infra\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/centos-vault\/8.5.2111\/centosplus\/$basearch\/os\/\r\ngpgcheck=1\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\r\n\r\nEOF\r\n\r\ncat &gt; \/etc\/yum.repos.d\/CentOS-Linux-PowerTools.repo &lt;&lt;'EOF'\r\n# CentOS-Linux-PowerTools.repo\r\n#\r\n# The mirrorlist system uses the connecting IP address of the client and the\r\n# update status of each mirror to pick current mirrors that are geographically\r\n# close to the client.  You should use this for CentOS updates unless you are\r\n# manually picking other mirrors.\r\n#\r\n# If the mirrorlist does not work for you, you can try the commented out\r\n# baseurl line instead.\r\n\r\n[powertools]\r\nname=CentOS Linux 8.5.2111 - PowerTools\r\n#mirrorlist=http:\/\/mirrorlist.centos.org\/?release=8.5.2111&amp;arch=$basearch&amp;repo=PowerTools&amp;infra=$infra\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/centos-vault\/8.5.2111\/PowerTools\/$basearch\/os\/\r\ngpgcheck=1\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\r\n\r\nEOF\r\n\r\ncat &gt; \/etc\/yum.repos.d\/CentOS-Linux-Sources.repo &lt;&lt;'EOF'\r\n# CentOS-Linux-Sources.repo\r\n\r\n\r\n[baseos-source]\r\nname=CentOS Linux 8.5.2111 - BaseOS - Source\r\nbaseurl=http:\/\/vault.centos.org\/$contentdir\/8.5.2111\/BaseOS\/Source\/\r\ngpgcheck=1\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\r\n\r\n[appstream-source]\r\nname=CentOS Linux 8.5.2111 - AppStream - Source\r\nbaseurl=http:\/\/vault.centos.org\/$contentdir\/8.5.2111\/AppStream\/Source\/\r\ngpgcheck=1\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\r\n\r\n[extras-source]\r\nname=CentOS Linux 8.5.2111 - Extras - Source\r\nbaseurl=http:\/\/vault.centos.org\/$contentdir\/8.5.2111\/extras\/Source\/\r\ngpgcheck=1\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\r\n\r\n[plus-source]\r\nname=CentOS Linux 8.5.2111 - Plus - Source\r\nbaseurl=http:\/\/vault.centos.org\/$contentdir\/8.5.2111\/centosplus\/Source\/\r\ngpgcheck=1\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\r\n\r\nEOF\r\n\r\ncat &gt; \/etc\/yum.repos.d\/epel.repo &lt;&lt;'EOF'\r\n[epel]\r\nname=Extra Packages for Enterprise Linux $releasever - $basearch\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/epel\/8\/Everything\/$basearch\r\n#metalink=https:\/\/mirrors.fedoraproject.org\/metalink?repo=epel-$releasever&amp;arch=$basearch&amp;infra=$infra&amp;content=$contentdir\r\nenabled=1\r\ngpgcheck=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-8\r\n\r\n[epel-debuginfo]\r\nname=Extra Packages for Enterprise Linux $releasever - $basearch - Debug\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/epel\/8\/Everything\/$basearch\/debug\r\n#metalink=https:\/\/mirrors.fedoraproject.org\/metalink?repo=epel-debug-$releasever&amp;arch=$basearch&amp;infra=$infra&amp;content=$contentdir\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-8\r\ngpgcheck=0\r\n\r\n[epel-source]\r\nname=Extra Packages for Enterprise Linux $releasever - $basearch - Source\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/epel\/8\/Everything\/SRPMS\r\n#metalink=https:\/\/mirrors.fedoraproject.org\/metalink?repo=epel-source-$releasever&amp;arch=$basearch&amp;infra=$infra&amp;content=$contentdir\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-8\r\ngpgcheck=0\r\n\r\nEOF\r\n\r\ncat &gt; \/etc\/yum.repos.d\/epel-modular.repo &lt;&lt;'EOF'\r\n[epel-modular]\r\nname=Extra Packages for Enterprise Linux Modular $releasever - $basearch\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/epel\/8\/Modular\/$basearch\r\n#metalink=https:\/\/mirrors.fedoraproject.org\/metalink?repo=epel-modular-$releasever&amp;arch=$basearch&amp;infra=$infra&amp;content=$contentdir\r\nenabled=1\r\ngpgcheck=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-8\r\n\r\n[epel-modular-debuginfo]\r\nname=Extra Packages for Enterprise Linux Modular $releasever - $basearch - Debug\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/epel\/8\/Modular\/$basearch\/debug\r\n#metalink=https:\/\/mirrors.fedoraproject.org\/metalink?repo=epel-modular-debug-$releasever&amp;arch=$basearch&amp;infra=$infra&amp;content=$contentdir\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-8\r\ngpgcheck=0\r\n\r\n[epel-modular-source]\r\nname=Extra Packages for Enterprise Linux Modular $releasever - $basearch - Source\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/epel\/8\/Modular\/SRPMS\r\n#metalink=https:\/\/mirrors.fedoraproject.org\/metalink?repo=epel-modular-source-$releasever&amp;arch=$basearch&amp;infra=$infra&amp;content=$contentdir\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-8\r\ngpgcheck=0\r\n\r\nEOF\r\n\r\ncat &gt; \/etc\/yum.repos.d\/epel-playground.repo &lt;&lt;'EOF'\r\n[epel-playground]\r\nname=Extra Packages for Enterprise Linux $releasever - Playground - $basearch\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/epel\/playground\/$releasever\/Everything\/$basearch\/os\r\n#metalink=https:\/\/mirrors.fedoraproject.org\/metalink?repo=playground-epel$releasever&amp;arch=$basearch&amp;infra=$infra&amp;content=$contentdir\r\nenabled=0\r\ngpgcheck=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-8\r\n\r\n[epel-playground-debuginfo]\r\nname=Extra Packages for Enterprise Linux $releasever - Playground - $basearch - Debug\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/epel\/playground\/$releasever\/Everything\/$basearch\/debug\r\n#metalink=https:\/\/mirrors.fedoraproject.org\/metalink?repo=playground-debug-epel$releasever&amp;arch=$basearch&amp;infra=$infra&amp;content=$contentdir\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-8\r\ngpgcheck=0\r\n\r\n[epel-playground-source]\r\nname=Extra Packages for Enterprise Linux $releasever - Playground - $basearch - Source\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/epel\/playground\/$releasever\/Everything\/source\/tree\/\r\n#metalink=https:\/\/mirrors.fedoraproject.org\/metalink?repo=playground-source-epel$releasever&amp;arch=$basearch&amp;infra=$infra&amp;content=$contentdir\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-8\r\ngpgcheck=0\r\n\r\nEOF\r\n\r\ncat &gt; \/etc\/yum.repos.d\/epel-testing.repo &lt;&lt;'EOF'\r\n[epel-testing]\r\nname=Extra Packages for Enterprise Linux $releasever - Testing - $basearch\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/epel\/testing\/$releasever\/Everything\/$basearch\r\n#metalink=https:\/\/mirrors.fedoraproject.org\/metalink?repo=testing-epel$releasever&amp;arch=$basearch&amp;infra=$infra&amp;content=$contentdir\r\nenabled=0\r\ngpgcheck=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-8\r\n\r\n[epel-testing-debuginfo]\r\nname=Extra Packages for Enterprise Linux $releasever - Testing - $basearch - Debug\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/epel\/testing\/$releasever\/Everything\/$basearch\/debug\r\n#metalink=https:\/\/mirrors.fedoraproject.org\/metalink?repo=testing-debug-epel$releasever&amp;arch=$basearch&amp;infra=$infra&amp;content=$contentdir\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-8\r\ngpgcheck=0\r\n\r\n[epel-testing-source]\r\nname=Extra Packages for Enterprise Linux $releasever - Testing - $basearch - Source\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/epel\/testing\/$releasever\/Everything\/SRPMS\r\n#metalink=https:\/\/mirrors.fedoraproject.org\/metalink?repo=testing-source-epel$releasever&amp;arch=$basearch&amp;infra=$infra&amp;content=$contentdir\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-8\r\ngpgcheck=0\r\n\r\nEOF\r\n\r\ncat &gt; \/etc\/yum.repos.d\/epel-testing-modular.repo &lt;&lt;'EOF'\r\n[epel-testing-modular]\r\nname=Extra Packages for Enterprise Linux Modular $releasever - Testing - $basearch\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/epel\/testing\/$releasever\/Modular\/$basearch\r\n#metalink=https:\/\/mirrors.fedoraproject.org\/metalink?repo=testing-modular-epel$releasever&amp;arch=$basearch&amp;infra=$infra&amp;content=$contentdir\r\nenabled=0\r\ngpgcheck=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-8\r\n\r\n[epel-testing-modular-debuginfo]\r\nname=Extra Packages for Enterprise Linux Modular $releasever - Testing - $basearch - Debug\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/epel\/testing\/$releasever\/Modular\/$basearch\/debug\r\n#metalink=https:\/\/mirrors.fedoraproject.org\/metalink?repo=testing-modular-debug-epel$releasever&amp;arch=$basearch&amp;infra=$infra&amp;content=$contentdir\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-8\r\ngpgcheck=0\r\n\r\n[epel-testing-modular-source]\r\nname=Extra Packages for Enterprise Linux Modular $releasever - Testing - $basearch - Source\r\nbaseurl=http:\/\/mirrors.cloud.tencent.com\/epel\/testing\/$releasever\/Modular\/SRPMS\r\n#metalink=https:\/\/mirrors.fedoraproject.org\/metalink?repo=testing-modular-source-epel$releasever&amp;arch=$basearch&amp;infra=$infra&amp;content=$contentdir\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-8\r\ngpgcheck=0\r\n\r\nEOF<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">4.\u6e05\u7406\u8001\u7684DNF\u6e90\u7f13\u5b58\u5e76\u91cd\u65b0\u751f\u6210DNF\u6e90\u548cEPEL\u6e90\u7684\u7f13\u5b58\uff1a<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">dnf clean all &amp;&amp; dnf makecache<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">5.\u5b89\u88c5\u5e38\u7528\u8f6f\u4ef6\u5de5\u5177\uff1a<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">#\u5b89\u88c5Wget\r\ndnf install -y wget\r\n\r\n#\u5b89\u88c5vim\r\ndnf install -y vim\r\n\r\n#\u5b89\u88c5net-tools\r\ndnf install -y net-tools\r\n\r\n#\u5b89\u88c5gcc\r\ndnf -y install gcc make\r\n\r\n#\u5b89\u88c5\u81ea\u52a8\u8865\u5168\u547d\u4ee4\u5de5\u5177bash-completion\r\ndnf -y install bash-completion\r\n\r\n#\u6740\u6b7b\u50f5\u5c38\u8fdb\u7a0b\u5de5\u5177psmisc\r\ndnf -y install psmisc<\/pre>\n<p>6.\u5b8c\u6210<\/p>\n<hr \/>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u8fd8\u6709\u4e00\u952e\u6362\u6e90\u811a\u672c\uff1a<\/span><\/p>\n<ul>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u5b98\u7f51\uff1a<a href=\"https:\/\/supermanito.github.io\/LinuxMirrors\/#\/\" target=\"_blank\" rel=\"noopener\">https:\/\/supermanito.github.io\/LinuxMirrors\/#\/<\/a><\/span><\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">bash &lt;(curl -sSL https:\/\/gitee.com\/SuperManito\/LinuxMirrors\/raw\/main\/ChangeMirrors.sh)<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u4e0a\u6587\u4e2d\u7b2c\u4e09\u6b65\u5176\u5b9e\u4e5f\u53ef\u4ee5\u76f4\u901a\u4e0a\u4f20\u66ff\u6362\u5230\u7684\u6587\u4ef6\u6765\u5b9e\u73b0\u3002<\/span><\/p>\n<ul>\n<li><a href=\"https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2022\/12\/Centos8_\u539f\u751fYUM\u6e90.zip\" target=\"_blank\" rel=\"noopener\">Centos8_\u539f\u751fDNF\u6e90.zip<\/a><\/li>\n<li><a href=\"https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2022\/12\/Centos8_\u817e\u8baf\u4e91YUM\u6e90.zip\" target=\"_blank\" rel=\"noopener\">Centos8_\u817e\u8baf\u4e91DNF\u6e90.zip<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Cento8\u9ed8\u8ba4\u7684YUM\u6e90\u90fd\u662f\u6d77\u5916\u7684\u670d\u52a1\u5668\u7684\uff0c\u56fd\u5185\u8bbf\u95ee\u7f13\u6162\u6216\u8005\u5e72\u8106\u65e0\u6cd5\u8bbf\u95ee\uff0c\u4e3a\u4e86\u80fd\u6b63\u5e38\u4f7f\u7528\uff0c\u6362\u6e90\u662f\u5fc5\u987b\u7684\uff0c\u540c\u65f6\u4e3a\u4e86\u4fdd\u8bc1\u8f6f\u4ef6\u7684\u4e30\u5bcc\u6027\uff0c\u6dfb\u52a0EPEL\u6269\u5c55\u6e90\u4f1a\u51cf\u5c11\u5f88\u591a\u4e0d\u5fc5\u8981\u7684\u9ebb\u70e6\u3002 \u4e0b\u9762\u7ed9Centos8\u6362\u817e\u8baf\u4e91\u7684YUM\u6e90\u548cEPEL\u6269\u5c55\u6e90\uff0c\u817e\u8baf\u4e91\u7684\u6bd4\u963f\u91cc\u4e91\u7684\u6e90\u5feb\u3002 1.\u5907\u4efd\u539f\u6765\u7684YUM\u6e90\uff1a mv \/etc\/yum.repos. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Centos8\u6362\u6e90\u6559\u7a0b-\u817e\u8baf\u4e91\" class=\"read-more button\" href=\"https:\/\/blog.kingsbestone.com\/?p=1992#more-1992\" aria-label=\"\u66f4\u591a Centos8\u6362\u6e90\u6559\u7a0b-\u817e\u8baf\u4e91\">\u67e5\u770b\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":212,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[59],"tags":[67,65,66,33],"_links":{"self":[{"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/posts\/1992"}],"collection":[{"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1992"}],"version-history":[{"count":12,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/posts\/1992\/revisions"}],"predecessor-version":[{"id":2085,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/posts\/1992\/revisions\/2085"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/media\/212"}],"wp:attachment":[{"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}