修改后的各个配置文件内容如下: ### cat CentOS-Base.repo ### [base] name=CentOS-8 - Base - mirrors.aliyun.com failovermethod mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official ### cat CentOS-AppStream.repo ### [AppStream] name=CentOS mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official ### cat CentOS-Extras.repo ### [extras] name=CentOS epel/8/Everything/$basearch enabled=1 gpgcheck=0 ### cat CentOS-PowerTools.repo ### [PowerTools] name=CentOS -8 - AppStream - mirrors.aliyun.com 2.1 MB/s | 6.5 MB 00:03 CentOS-8 - Base
我们可以使用默认的 yum 命令安装 wget [root@3d38bf89f74a /]# yum install wget Failed to set locale, defaulting to C.UTF-8 CentOS -8 - AppStream 1.8 MB/s | 5.8 MB 00:03 CentOS-8 - Base 1.8 MB/s | 2.2 MB 00:01 CentOS-8 - Extras Packages Total download size: 852 k Installed size: 3.0 M Is this ok [y/N]: y Downloading Packages: CentOS 02e86d1c976ab532/packages/wget-1.19.5-8.el8_1.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY CentOS
4.2 kB/s | 7.3 kB 00:01 CentOS 251 kB/s | 207 kB 00:00 CentOS 69 kB/s | 41 kB 00:00 CentOS 93 kB/s | 149 kB 00:01 CentOS 299 kB/s | 175 kB 00:00 CentOS
https://www.ossez.com/t/centos-8/795
内核已经更新到最新版了 [root@VM-16-15-centos ~]# uname -r 5.18.5-1.el8.elrepo.x86_64 Reference https://zach.vip/server/centos
29 MB/s | 6.3 MB 00:00 CentOS-8 - Base 51 kB/s | 3.9 kB 00:00 CentOS-8 - Base 11 MB/s | 2.3 MB 00:00 CentOS-8 查看所有的仓库 [root@cby ~]# dnf repolist repo id repo name AppStream CentOS -8 - AppStream BaseOS CentOS-8 - Base Stream-AppStream CentOS-Stream - epel Extra Packages for Enterprise Linux 8 - x86_64 extras CentOS
HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS
" HOME_URL="https://centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS
Enterprise Linux 8 - x86_64 38 kB/s | 8.6 kB 00:00 CentOS
安装源 # 为 RHEL-8或 CentOS-8配置源 yum install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm
HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS
CentOS-8 - AppStream Name Stream Profiles Summary
git = 2.27.0-1.el8 # ✅ 通过yum源安装Git组件 [root@ecs-kunpeng GO+]# yum install -y git-2.27.0-1.el8.aarch64 CentOS AppStream 54 kB/s | 4.3 kB 00:00 CentOS 43 kB/s | 3.9 kB 00:00 CentOS
CentOS-8 - AppStream Name Stream Profiles Summary php 7.2 [d][e] common
:3"HOME_URL="https://tlinux.qq.com/"BUG_REPORT_URL="https://tlinux.qq.com/"CENTOS_MANTISBT_PROJECT="CentOS
container 423e78f29e83 ---> 7151b8cda488 Step 3/6 : RUN yum update -y ---> Running in f22ddcccc345 CentOS -8 - AppStream 1.7 MB/s | 6.5 MB 00:03 CentOS-8 - Base 5.4 MB/s | 5.0 MB 00:00 CentOS-8 - Extras 2.4 kB/s | 2.1 kB
than once in the configuration Repository fasttrack is listed more than once in the configuration CentOS
c-ares-devel \ python-devel python-sphinx libcap-devel \ elfutils-libelf-devel libunwind-devel CentOS
CentOS-8 - AppStream Name Stream Profiles Summary
二、使用阿里源,下载新的CentOS-8源 [root@server01 ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com