CentOS 8 配置阿里云镜像repo

备份并替换 repo

rename '.repo' '.repo.bak' /etc/yum.repos.d/*.repo
wget https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo -O /etc/yum.repos.d/CentOS-Base.repo 
yum makecache 

尝试安装 httpd 服务验证repo 是否可用

sudo dnf install httpd

尝试安装 python3-argcomplete 服务验证repo 是否可用

[root@node11 ~]# dnf install python3-argcomplete
Last metadata expiration check: 0:01:28 ago on Mon 07 Nov 2022 04:48:50 PM PST.
Dependencies resolved.
=============================================================================================================================================================================================
 Package                                              Architecture                            Version                                       Repository                                  Size
=============================================================================================================================================================================================
Installing:
 python3-argcomplete                                  noarch                                  1.9.3-6.el8                                   AppStream                                   60 k

Transaction Summary
=============================================================================================================================================================================================
Install  1 Package

Total download size: 60 k
Installed size: 194 k
Is this ok [y/N]: y
Downloading Packages:
python3-argcomplete-1.9.3-6.el8.noarch.rpm                                                                                                                    58 kB/s |  60 kB     00:01    
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                         57 kB/s |  60 kB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                     1/1 
  Installing       : python3-argcomplete-1.9.3-6.el8.noarch                                                                                                                              1/1 
  Running scriptlet: python3-argcomplete-1.9.3-6.el8.noarch                                                                                                                              1/1 
  Verifying        : python3-argcomplete-1.9.3-6.el8.noarch                                                                                                                              1/1 

Installed:
  python3-argcomplete-1.9.3-6.el8.noarch                                                                                                                                                     

Complete!

posted @ 2022-11-08 08:56  人间词话  阅读(1167)  评论(0)    收藏  举报