CentOS 7 系统Kubernetes环境搭建与Docker安装配置

本文详细记录了在CentOS 7系统上安装Docker 20.10.24版本,并进行Kubernetes环境预配置的完整过程。通过阿里云镜像源加速安装,确保网络环境稳定。

一、系统环境准备
1.1 系统初始化检查

首先检查系统基本信息,确认当前为CentOS 7系统:

sh 复制代码
[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
1.2 清理旧版Docker

移除系统中可能存在的旧版本Docker相关组件:

sh 复制代码
[root@localhost ~]# sudo yum remove -y docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
已加载插件:fastestmirror
参数 docker 没有匹配
参数 docker-client 没有匹配
参数 docker-client-latest 没有匹配
参数 docker-common 没有匹配
参数 docker-latest 没有匹配
参数 docker-latest-logrotate 没有匹配
参数 docker-logrotate 没有匹配
参数 docker-engine 没有匹配
不删除任何软件包
二、配置阿里云镜像源
2.1 备份原有源配置
sh 复制代码
[root@localhost ~]# sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2.2 下载阿里云CentOS 7源
sh 复制代码
[root@localhost ~]# sudo curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2523  100  2523    0     0   2974      0 --:--:-- --:--:-- --:--:--  2975
2.3 清理并重建缓存
sh 复制代码
[root@localhost ~]# sudo yum clean all
已加载插件:fastestmirror
正在清理软件源: base extras updates
Cleaning up list of fastest mirrors

[root@localhost ~]# sudo yum makecache
已加载插件:fastestmirror
Determining fastest mirrors
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
base                                                                                                                                                             | 3.6 kB  00:00:00
extras                                                                                                                                                           | 2.9 kB  00:00:00
updates                                                                                                                                                          | 2.9 kB  00:00:00
(1/10): base/7/x86_64/group_gz                                                                                                                                   | 153 kB  00:00:00
(2/10): extras/7/x86_64/filelists_db                                                                                                                             | 305 kB  00:00:01
(3/10): extras/7/x86_64/other_db                                                                                                                                 | 154 kB  00:00:00
(4/10): base/7/x86_64/other_db                                                                                                                                   | 2.6 MB  00:00:05
(5/10): updates/7/x86_64/filelists_db                                                                                                                            |  15 MB  00:00:15
base/7/x86_64/primary_db       FAILED
http://mirrors.cloud.aliyuncs.com/centos/7/os/x86_64/repodata/6d0c3a488c282fe537794b5946b01e28c7f44db79097bb06826e1c0c88bad5ef-primary.sqlite.bz2: [Errno 14] curl#7 - "Failed connect to mirrors.cloud.aliyuncs.com:80; Connection refused"
正在尝试其它镜像。
base/7/x86_64/filelists_db     FAILED                                          1% [====================-                                              ] 211 kB/s |  19 MB  00:03:23 ETA
http://mirrors.aliyuncs.com/centos/7/os/x86_64/repodata/d6d94c7d406fe7ad4902a97104b39a0d8299451832a97f31d71653ba982c955b-filelists.sqlite.bz2: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connection refused"
正在尝试其它镜像。
extras/7/x86_64/primary_db     FAILED
http://mirrors.aliyuncs.com/centos/7/extras/x86_64/repodata/e12dbf10e94bc2b33b1f45e026559bc8685728b139dddae0654d96bc624c5602-primary.sqlite.bz2: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connection refused"
正在尝试其它镜像。
(6/10): extras/7/x86_64/primary_db                                                                                                                               | 253 kB  00:00:01
updates/7/x86_64/primary_db    FAILED                                          0% [==========================-                                        ] 884 kB/s |  24 MB  00:00:41 ETA
http://mirrors.aliyuncs.com/centos/7/updates/x86_64/repodata/f19044932626155f0cd849e88972b84875fc85e3308b4d622844a911c4ef54d0-primary.sqlite.bz2: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connection refused"
正在尝试其它镜像。
(7/10): base/7/x86_64/primary_db                                                                                                                                 | 6.1 MB  00:00:09
(8/10): base/7/x86_64/filelists_db                                                                                                                               | 7.2 MB  00:00:13
updates/7/x86_64/other_db      FAILED                                          2% [==========================================                         ] 868 kB/s |  38 MB  00:00:26 ETA
http://mirrors.cloud.aliyuncs.com/centos/7/updates/x86_64/repodata/14ff80eeb5b7c2c703cb151b97a17a9cec41fbe5c820b6e73a015d522e02bfe7-other.sqlite.bz2: [Errno 14] curl#7 - "Failed connect to mirrors.cloud.aliyuncs.com:80; Connection refused"
正在尝试其它镜像。
(9/10): updates/7/x86_64/other_db                                                                                                                                | 1.6 MB  00:00:02
(10/10): updates/7/x86_64/primary_db                                                                                                                             |  27 MB  00:00:24
元数据缓存已建立

缓存建立过程中遇到部分镜像连接问题,但最终成功建立元数据缓存。

2.4 系统更新

执行系统全面更新:

sh 复制代码
[root@localhost ~]# sudo yum update
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 NetworkManager.x86_64.1.1.18.8-1.el7 将被 升级
---> 软件包 NetworkManager.x86_64.1.1.18.8-2.el7_9 将被 更新
---> 软件包 NetworkManager-libnm.x86_64.1.1.18.8-1.el7 将被 升级
---> 软件包 NetworkManager-libnm.x86_64.1.1.18.8-2.el7_9 将被 更新
---> 软件包 NetworkManager-team.x86_64.1.1.18.8-1.el7 将被 升级
---> 软件包 NetworkManager-team.x86_64.1.1.18.8-2.el7_9 将被 更新
---> 软件包 NetworkManager-tui.x86_64.1.1.18.8-1.el7 将被 升级
---> 软件包 NetworkManager-tui.x86_64.1.1.18.8-2.el7_9 将被 更新
---> 软件包 bash.x86_64.0.4.2.46-34.el7 将被 升级
---> 软件包 bash.x86_64.0.4.2.46-35.el7_9 将被 更新
---> 软件包 bind-export-libs.x86_64.32.9.11.4-26.P2.el7 将被 升级
---> 软件包 bind-export-libs.x86_64.32.9.11.4-26.P2.el7_9.16 将被 更新
---> 软件包 binutils.x86_64.0.2.27-44.base.el7 将被 升级
---> 软件包 binutils.x86_64.0.2.27-44.base.el7_9.1 将被 更新
---> 软件包 ca-certificates.noarch.0.2020.2.41-70.0.el7_8 将被 升级
---> 软件包 ca-certificates.noarch.0.2023.2.60_v7.0.306-72.el7_9 将被 更新
---> 软件包 centos-release.x86_64.0.7-9.2009.0.el7.centos 将被 升级
---> 软件包 centos-release.x86_64.0.7-9.2009.2.el7.centos 将被 更新
---> 软件包 coreutils.x86_64.0.8.22-24.el7 将被 升级
---> 软件包 coreutils.x86_64.0.8.22-24.el7_9.2 将被 更新
---> 软件包 cronie.x86_64.0.1.4.11-23.el7 将被 升级
---> 软件包 cronie.x86_64.0.1.4.11-25.el7_9 将被 更新
---> 软件包 cronie-anacron.x86_64.0.1.4.11-23.el7 将被 升级
---> 软件包 cronie-anacron.x86_64.0.1.4.11-25.el7_9 将被 更新
---> 软件包 curl.x86_64.0.7.29.0-59.el7 将被 升级
---> 软件包 curl.x86_64.0.7.29.0-59.el7_9.2 将被 更新
---> 软件包 cyrus-sasl-lib.x86_64.0.2.1.26-23.el7 将被 升级
---> 软件包 cyrus-sasl-lib.x86_64.0.2.1.26-24.el7_9 将被 更新
---> 软件包 device-mapper.x86_64.7.1.02.170-6.el7 将被 升级
---> 软件包 device-mapper.x86_64.7.1.02.170-6.el7_9.5 将被 更新
---> 软件包 device-mapper-event.x86_64.7.1.02.170-6.el7 将被 升级
---> 软件包 device-mapper-event.x86_64.7.1.02.170-6.el7_9.5 将被 更新
---> 软件包 device-mapper-event-libs.x86_64.7.1.02.170-6.el7 将被 升级
---> 软件包 device-mapper-event-libs.x86_64.7.1.02.170-6.el7_9.5 将被 更新
---> 软件包 device-mapper-libs.x86_64.7.1.02.170-6.el7 将被 升级
---> 软件包 device-mapper-libs.x86_64.7.1.02.170-6.el7_9.5 将被 更新
---> 软件包 device-mapper-persistent-data.x86_64.0.0.8.5-3.el7 将被 升级
---> 软件包 device-mapper-persistent-data.x86_64.0.0.8.5-3.el7_9.2 将被 更新
---> 软件包 dhclient.x86_64.12.4.2.5-82.el7.centos 将被 升级
---> 软件包 dhclient.x86_64.12.4.2.5-83.el7.centos.2 将被 更新
---> 软件包 dhcp-common.x86_64.12.4.2.5-82.el7.centos 将被 升级
---> 软件包 dhcp-common.x86_64.12.4.2.5-83.el7.centos.2 将被 更新
---> 软件包 dhcp-libs.x86_64.12.4.2.5-82.el7.centos 将被 升级
---> 软件包 dhcp-libs.x86_64.12.4.2.5-83.el7.centos.2 将被 更新
---> 软件包 diffutils.x86_64.0.3.3-5.el7 将被 升级
---> 软件包 diffutils.x86_64.0.3.3-6.el7_9 将被 更新
---> 软件包 dmidecode.x86_64.1.3.2-5.el7 将被 升级
---> 软件包 dmidecode.x86_64.1.3.2-5.el7_9.1 将被 更新
---> 软件包 expat.x86_64.0.2.1.0-12.el7 将被 升级
---> 软件包 expat.x86_64.0.2.1.0-15.el7_9 将被 更新
---> 软件包 firewalld.noarch.0.0.6.3-11.el7 将被 升级
---> 软件包 firewalld.noarch.0.0.6.3-13.el7_9 将被 更新
---> 软件包 firewalld-filesystem.noarch.0.0.6.3-11.el7 将被 升级
---> 软件包 firewalld-filesystem.noarch.0.0.6.3-13.el7_9 将被 更新
---> 软件包 freetype.x86_64.0.2.8-14.el7 将被 升级
---> 软件包 freetype.x86_64.0.2.8-14.el7_9.1 将被 更新
---> 软件包 glib2.x86_64.0.2.56.1-7.el7 将被 升级
---> 软件包 glib2.x86_64.0.2.56.1-9.el7_9 将被 更新
---> 软件包 glibc.x86_64.0.2.17-317.el7 将被 升级
---> 软件包 glibc.x86_64.0.2.17-326.el7_9.3 将被 更新
---> 软件包 glibc-common.x86_64.0.2.17-317.el7 将被 升级
---> 软件包 glibc-common.x86_64.0.2.17-326.el7_9.3 将被 更新
---> 软件包 grub2.x86_64.1.2.02-0.86.el7.centos 将被 升级
---> 软件包 grub2.x86_64.1.2.02-0.87.0.2.el7.centos.14 将被 更新
---> 软件包 grub2-common.noarch.1.2.02-0.86.el7.centos 将被 升级
---> 软件包 grub2-common.noarch.1.2.02-0.87.0.2.el7.centos.14 将被 更新
---> 软件包 grub2-pc.x86_64.1.2.02-0.86.el7.centos 将被 升级
---> 软件包 grub2-pc.x86_64.1.2.02-0.87.0.2.el7.centos.14 将被 更新
---> 软件包 grub2-pc-modules.noarch.1.2.02-0.86.el7.centos 将被 升级
---> 软件包 grub2-pc-modules.noarch.1.2.02-0.87.0.2.el7.centos.14 将被 更新
---> 软件包 grub2-tools.x86_64.1.2.02-0.86.el7.centos 将被 升级
---> 软件包 grub2-tools.x86_64.1.2.02-0.87.0.2.el7.centos.14 将被 更新
---> 软件包 grub2-tools-extra.x86_64.1.2.02-0.86.el7.centos 将被 升级
---> 软件包 grub2-tools-extra.x86_64.1.2.02-0.87.0.2.el7.centos.14 将被 更新
---> 软件包 grub2-tools-minimal.x86_64.1.2.02-0.86.el7.centos 将被 升级
---> 软件包 grub2-tools-minimal.x86_64.1.2.02-0.87.0.2.el7.centos.14 将被 更新
---> 软件包 gzip.x86_64.0.1.5-10.el7 将被 升级
---> 软件包 gzip.x86_64.0.1.5-11.el7_9 将被 更新
---> 软件包 initscripts.x86_64.0.9.49.53-1.el7 将被 升级
---> 软件包 initscripts.x86_64.0.9.49.53-1.el7_9.1 将被 更新
---> 软件包 iprutils.x86_64.0.2.4.17.1-3.el7 将被 升级
---> 软件包 iprutils.x86_64.0.2.4.17.1-3.el7_7 将被 更新
---> 软件包 iwl100-firmware.noarch.0.39.31.5.1-79.el7 将被 升级
---> 软件包 iwl100-firmware.noarch.0.39.31.5.1-83.el7_9 将被 更新
---> 软件包 iwl1000-firmware.noarch.1.39.31.5.1-79.el7 将被 升级
---> 软件包 iwl1000-firmware.noarch.1.39.31.5.1-83.el7_9 将被 更新
---> 软件包 iwl105-firmware.noarch.0.18.168.6.1-79.el7 将被 升级
---> 软件包 iwl105-firmware.noarch.0.18.168.6.1-83.el7_9 将被 更新
---> 软件包 iwl135-firmware.noarch.0.18.168.6.1-79.el7 将被 升级
---> 软件包 iwl135-firmware.noarch.0.18.168.6.1-83.el7_9 将被 更新
---> 软件包 iwl2000-firmware.noarch.0.18.168.6.1-79.el7 将被 升级
---> 软件包 iwl2000-firmware.noarch.0.18.168.6.1-83.el7_9 将被 更新
---> 软件包 iwl2030-firmware.noarch.0.18.168.6.1-79.el7 将被 升级
---> 软件包 iwl2030-firmware.noarch.0.18.168.6.1-83.el7_9 将被 更新
---> 软件包 iwl3160-firmware.noarch.0.25.30.13.0-79.el7 将被 升级
---> 软件包 iwl3160-firmware.noarch.0.25.30.13.0-83.el7_9 将被 更新
---> 软件包 iwl3945-firmware.noarch.0.15.32.2.9-79.el7 将被 升级
---> 软件包 iwl3945-firmware.noarch.0.15.32.2.9-83.el7_9 将被 更新
---> 软件包 iwl4965-firmware.noarch.0.228.61.2.24-79.el7 将被 升级
---> 软件包 iwl4965-firmware.noarch.0.228.61.2.24-83.el7_9 将被 更新
---> 软件包 iwl5000-firmware.noarch.0.8.83.5.1_1-79.el7 将被 升级
---> 软件包 iwl5000-firmware.noarch.0.8.83.5.1_1-83.el7_9 将被 更新
---> 软件包 iwl5150-firmware.noarch.0.8.24.2.2-79.el7 将被 升级
---> 软件包 iwl5150-firmware.noarch.0.8.24.2.2-83.el7_9 将被 更新
---> 软件包 iwl6000-firmware.noarch.0.9.221.4.1-79.el7 将被 升级
---> 软件包 iwl6000-firmware.noarch.0.9.221.4.1-83.el7_9 将被 更新
---> 软件包 iwl6000g2a-firmware.noarch.0.18.168.6.1-79.el7 将被 升级
---> 软件包 iwl6000g2a-firmware.noarch.0.18.168.6.1-83.el7_9 将被 更新
---> 软件包 iwl6000g2b-firmware.noarch.0.18.168.6.1-79.el7 将被 升级
---> 软件包 iwl6000g2b-firmware.noarch.0.18.168.6.1-83.el7_9 将被 更新
---> 软件包 iwl6050-firmware.noarch.0.41.28.5.1-79.el7 将被 升级
---> 软件包 iwl6050-firmware.noarch.0.41.28.5.1-83.el7_9 将被 更新
---> 软件包 iwl7260-firmware.noarch.0.25.30.13.0-79.el7 将被 升级
---> 软件包 iwl7260-firmware.noarch.0.25.30.13.0-83.el7_9 将被 更新
---> 软件包 kbd.x86_64.0.1.15.5-15.el7 将被 升级
---> 软件包 kbd.x86_64.0.1.15.5-16.el7_9 将被 更新
---> 软件包 kbd-legacy.noarch.0.1.15.5-15.el7 将被 升级
---> 软件包 kbd-legacy.noarch.0.1.15.5-16.el7_9 将被 更新
---> 软件包 kbd-misc.noarch.0.1.15.5-15.el7 将被 升级
---> 软件包 kbd-misc.noarch.0.1.15.5-16.el7_9 将被 更新
---> 软件包 kernel.x86_64.0.3.10.0-1160.119.1.el7 将被 安装
---> 软件包 kernel-tools.x86_64.0.3.10.0-1160.el7 将被 升级
---> 软件包 kernel-tools.x86_64.0.3.10.0-1160.119.1.el7 将被 更新
---> 软件包 kernel-tools-libs.x86_64.0.3.10.0-1160.el7 将被 升级
---> 软件包 kernel-tools-libs.x86_64.0.3.10.0-1160.119.1.el7 将被 更新
---> 软件包 kexec-tools.x86_64.0.2.0.15-51.el7 将被 升级
---> 软件包 kexec-tools.x86_64.0.2.0.15-51.el7_9.3 将被 更新
---> 软件包 kpartx.x86_64.0.0.4.9-133.el7 将被 升级
---> 软件包 kpartx.x86_64.0.0.4.9-136.el7_9 将被 更新
---> 软件包 krb5-libs.x86_64.0.1.15.1-50.el7 将被 升级
---> 软件包 krb5-libs.x86_64.0.1.15.1-55.el7_9 将被 更新
---> 软件包 less.x86_64.0.458-9.el7 将被 升级
---> 软件包 less.x86_64.0.458-10.el7_9 将被 更新
---> 软件包 libblkid.x86_64.0.2.23.2-65.el7 将被 升级
---> 软件包 libblkid.x86_64.0.2.23.2-65.el7_9.1 将被 更新
---> 软件包 libcroco.x86_64.0.0.6.12-4.el7 将被 升级
---> 软件包 libcroco.x86_64.0.0.6.12-6.el7_9 将被 更新
---> 软件包 libcurl.x86_64.0.7.29.0-59.el7 将被 升级
---> 软件包 libcurl.x86_64.0.7.29.0-59.el7_9.2 将被 更新
---> 软件包 libmount.x86_64.0.2.23.2-65.el7 将被 升级
---> 软件包 libmount.x86_64.0.2.23.2-65.el7_9.1 将被 更新
---> 软件包 libsmartcols.x86_64.0.2.23.2-65.el7 将被 升级
---> 软件包 libsmartcols.x86_64.0.2.23.2-65.el7_9.1 将被 更新
---> 软件包 libssh2.x86_64.0.1.8.0-4.el7 将被 升级
---> 软件包 libssh2.x86_64.0.1.8.0-4.el7_9.1 将被 更新
---> 软件包 libuuid.x86_64.0.2.23.2-65.el7 将被 升级
---> 软件包 libuuid.x86_64.0.2.23.2-65.el7_9.1 将被 更新
---> 软件包 libxml2.x86_64.0.2.9.1-6.el7.5 将被 升级
---> 软件包 libxml2.x86_64.0.2.9.1-6.el7_9.6 将被 更新
---> 软件包 linux-firmware.noarch.0.20200421-79.git78c0348.el7 将被 升级
---> 软件包 linux-firmware.noarch.0.20200421-83.git78c0348.el7_9 将被 更新
---> 软件包 lvm2.x86_64.7.2.02.187-6.el7 将被 升级
---> 软件包 lvm2.x86_64.7.2.02.187-6.el7_9.5 将被 更新
---> 软件包 lvm2-libs.x86_64.7.2.02.187-6.el7 将被 升级
---> 软件包 lvm2-libs.x86_64.7.2.02.187-6.el7_9.5 将被 更新
---> 软件包 microcode_ctl.x86_64.2.2.1-73.el7 将被 升级
---> 软件包 microcode_ctl.x86_64.2.2.1-73.20.el7_9 将被 更新
---> 软件包 nspr.x86_64.0.4.21.0-1.el7 将被 升级
---> 软件包 nspr.x86_64.0.4.35.0-1.el7_9 将被 更新
---> 软件包 nss.x86_64.0.3.44.0-7.el7_7 将被 升级
---> 软件包 nss.x86_64.0.3.90.0-2.el7_9 将被 更新
---> 软件包 nss-pem.x86_64.0.1.0.3-7.el7 将被 升级
---> 软件包 nss-pem.x86_64.0.1.0.3-7.el7_9.1 将被 更新
---> 软件包 nss-softokn.x86_64.0.3.44.0-8.el7_7 将被 升级
---> 软件包 nss-softokn.x86_64.0.3.90.0-6.el7_9 将被 更新
---> 软件包 nss-softokn-freebl.x86_64.0.3.44.0-8.el7_7 将被 升级
---> 软件包 nss-softokn-freebl.x86_64.0.3.90.0-6.el7_9 将被 更新
---> 软件包 nss-sysinit.x86_64.0.3.44.0-7.el7_7 将被 升级
---> 软件包 nss-sysinit.x86_64.0.3.90.0-2.el7_9 将被 更新
---> 软件包 nss-tools.x86_64.0.3.44.0-7.el7_7 将被 升级
---> 软件包 nss-tools.x86_64.0.3.90.0-2.el7_9 将被 更新
---> 软件包 nss-util.x86_64.0.3.44.0-4.el7_7 将被 升级
---> 软件包 nss-util.x86_64.0.3.90.0-1.el7_9 将被 更新
---> 软件包 open-vm-tools.x86_64.0.11.0.5-3.el7 将被 升级
---> 软件包 open-vm-tools.x86_64.0.11.0.5-3.el7_9.9 将被 更新
---> 软件包 openldap.x86_64.0.2.4.44-22.el7 将被 升级
---> 软件包 openldap.x86_64.0.2.4.44-25.el7_9 将被 更新
---> 软件包 openssh.x86_64.0.7.4p1-21.el7 将被 升级
---> 软件包 openssh.x86_64.0.7.4p1-23.el7_9 将被 更新
---> 软件包 openssh-clients.x86_64.0.7.4p1-21.el7 将被 升级
---> 软件包 openssh-clients.x86_64.0.7.4p1-23.el7_9 将被 更新
---> 软件包 openssh-server.x86_64.0.7.4p1-21.el7 将被 升级
---> 软件包 openssh-server.x86_64.0.7.4p1-23.el7_9 将被 更新
---> 软件包 openssl.x86_64.1.1.0.2k-19.el7 将被 升级
---> 软件包 openssl.x86_64.1.1.0.2k-26.el7_9 将被 更新
---> 软件包 openssl-libs.x86_64.1.1.0.2k-19.el7 将被 升级
---> 软件包 openssl-libs.x86_64.1.1.0.2k-26.el7_9 将被 更新
---> 软件包 polkit.x86_64.0.0.112-26.el7 将被 升级
---> 软件包 polkit.x86_64.0.0.112-26.el7_9.1 将被 更新
---> 软件包 python.x86_64.0.2.7.5-89.el7 将被 升级
---> 软件包 python.x86_64.0.2.7.5-94.el7_9 将被 更新
---> 软件包 python-firewall.noarch.0.0.6.3-11.el7 将被 升级
---> 软件包 python-firewall.noarch.0.0.6.3-13.el7_9 将被 更新
---> 软件包 python-libs.x86_64.0.2.7.5-89.el7 将被 升级
---> 软件包 python-libs.x86_64.0.2.7.5-94.el7_9 将被 更新
---> 软件包 python-perf.x86_64.0.3.10.0-1160.el7 将被 升级
---> 软件包 python-perf.x86_64.0.3.10.0-1160.119.1.el7 将被 更新
---> 软件包 rpm.x86_64.0.4.11.3-45.el7 将被 升级
---> 软件包 rpm.x86_64.0.4.11.3-48.el7_9 将被 更新
---> 软件包 rpm-build-libs.x86_64.0.4.11.3-45.el7 将被 升级
---> 软件包 rpm-build-libs.x86_64.0.4.11.3-48.el7_9 将被 更新
---> 软件包 rpm-libs.x86_64.0.4.11.3-45.el7 将被 升级
---> 软件包 rpm-libs.x86_64.0.4.11.3-48.el7_9 将被 更新
---> 软件包 rpm-python.x86_64.0.4.11.3-45.el7 将被 升级
---> 软件包 rpm-python.x86_64.0.4.11.3-48.el7_9 将被 更新
---> 软件包 rsyslog.x86_64.0.8.24.0-55.el7 将被 升级
---> 软件包 rsyslog.x86_64.0.8.24.0-57.el7_9.3 将被 更新
---> 软件包 selinux-policy.noarch.0.3.13.1-268.el7 将被 升级
---> 软件包 selinux-policy.noarch.0.3.13.1-268.el7_9.2 将被 更新
---> 软件包 selinux-policy-targeted.noarch.0.3.13.1-268.el7 将被 升级
---> 软件包 selinux-policy-targeted.noarch.0.3.13.1-268.el7_9.2 将被 更新
---> 软件包 sudo.x86_64.0.1.8.23-10.el7 将被 升级
---> 软件包 sudo.x86_64.0.1.8.23-10.el7_9.3 将被 更新
---> 软件包 systemd.x86_64.0.219-78.el7 将被 升级
---> 软件包 systemd.x86_64.0.219-78.el7_9.9 将被 更新
---> 软件包 systemd-libs.x86_64.0.219-78.el7 将被 升级
---> 软件包 systemd-libs.x86_64.0.219-78.el7_9.9 将被 更新
---> 软件包 systemd-sysv.x86_64.0.219-78.el7 将被 升级
---> 软件包 systemd-sysv.x86_64.0.219-78.el7_9.9 将被 更新
---> 软件包 tuned.noarch.0.2.11.0-9.el7 将被 升级
---> 软件包 tuned.noarch.0.2.11.0-12.el7_9 将被 更新
---> 软件包 tzdata.noarch.0.2020a-1.el7 将被 升级
---> 软件包 tzdata.noarch.0.2024a-1.el7 将被 更新
---> 软件包 util-linux.x86_64.0.2.23.2-65.el7 将被 升级
---> 软件包 util-linux.x86_64.0.2.23.2-65.el7_9.1 将被 更新
---> 软件包 vim-minimal.x86_64.2.7.4.629-7.el7 将被 升级
---> 软件包 vim-minimal.x86_64.2.7.4.629-8.el7_9 将被 更新
---> 软件包 virt-what.x86_64.0.1.18-4.el7 将被 升级
---> 软件包 virt-what.x86_64.0.1.18-4.el7_9.1 将被 更新
---> 软件包 wpa_supplicant.x86_64.1.2.6-12.el7 将被 升级
---> 软件包 wpa_supplicant.x86_64.1.2.6-12.el7_9.2 将被 更新
---> 软件包 xmlsec1.x86_64.0.1.2.20-7.el7_4 将被 升级
---> 软件包 xmlsec1.x86_64.0.1.2.20-8.el7_9 将被 更新
---> 软件包 xmlsec1-openssl.x86_64.0.1.2.20-7.el7_4 将被 升级
---> 软件包 xmlsec1-openssl.x86_64.0.1.2.20-8.el7_9 将被 更新
---> 软件包 xz.x86_64.0.5.2.2-1.el7 将被 升级
---> 软件包 xz.x86_64.0.5.2.2-2.el7_9 将被 更新
---> 软件包 xz-libs.x86_64.0.5.2.2-1.el7 将被 升级
---> 软件包 xz-libs.x86_64.0.5.2.2-2.el7_9 将被 更新
---> 软件包 zlib.x86_64.0.1.2.7-18.el7 将被 升级
---> 软件包 zlib.x86_64.0.1.2.7-21.el7_9 将被 更新
--> 解决依赖关系完成

依赖关系解决

========================================================================================================================================================================================
 Package                                                架构                            版本                                                     源                                大小
========================================================================================================================================================================================
正在安装:
 kernel                                                 x86_64                          3.10.0-1160.119.1.el7                                    updates                           52 M
正在更新:
 NetworkManager                                         x86_64                          1:1.18.8-2.el7_9                                         updates                          1.9 M
 NetworkManager-libnm                                   x86_64                          1:1.18.8-2.el7_9                                         updates                          1.7 M
 NetworkManager-team                                    x86_64                          1:1.18.8-2.el7_9                                         updates                          165 k
 NetworkManager-tui                                     x86_64                          1:1.18.8-2.el7_9                                         updates                          329 k
 bash                                                   x86_64                          4.2.46-35.el7_9                                          updates                          1.0 M
 bind-export-libs                                       x86_64                          32:9.11.4-26.P2.el7_9.16                                 updates                          1.1 M
 binutils                                               x86_64                          2.27-44.base.el7_9.1                                     updates                          5.9 M
 ca-certificates                                        noarch                          2023.2.60_v7.0.306-72.el7_9                              updates                          923 k
 centos-release                                         x86_64                          7-9.2009.2.el7.centos                                    updates                           27 k
 coreutils                                              x86_64                          8.22-24.el7_9.2                                          updates                          3.3 M
 cronie                                                 x86_64                          1.4.11-25.el7_9                                          updates                           92 k
 cronie-anacron                                         x86_64                          1.4.11-25.el7_9                                          updates                           36 k
 curl                                                   x86_64                          7.29.0-59.el7_9.2                                        updates                          271 k
 cyrus-sasl-lib                                         x86_64                          2.1.26-24.el7_9                                          updates                          156 k
 device-mapper                                          x86_64                          7:1.02.170-6.el7_9.5                                     updates                          297 k
 device-mapper-event                                    x86_64                          7:1.02.170-6.el7_9.5                                     updates                          192 k
 device-mapper-event-libs                               x86_64                          7:1.02.170-6.el7_9.5                                     updates                          192 k
 device-mapper-libs                                     x86_64                          7:1.02.170-6.el7_9.5                                     updates                          325 k
 device-mapper-persistent-data                          x86_64                          0.8.5-3.el7_9.2                                          updates                          423 k
 dhclient                                               x86_64                          12:4.2.5-83.el7.centos.2                                 updates                          286 k
 dhcp-common                                            x86_64                          12:4.2.5-83.el7.centos.2                                 updates                          177 k
 dhcp-libs                                              x86_64                          12:4.2.5-83.el7.centos.2                                 updates                          133 k
 diffutils                                              x86_64                          3.3-6.el7_9                                              updates                          322 k
 dmidecode                                              x86_64                          1:3.2-5.el7_9.1                                          updates                           82 k
 expat                                                  x86_64                          2.1.0-15.el7_9                                           updates                           83 k
 firewalld                                              noarch                          0.6.3-13.el7_9                                           updates                          449 k
 firewalld-filesystem                                   noarch                          0.6.3-13.el7_9                                           updates                           51 k
 freetype                                               x86_64                          2.8-14.el7_9.1                                           updates                          380 k
 glib2                                                  x86_64                          2.56.1-9.el7_9                                           updates                          2.5 M
 glibc                                                  x86_64                          2.17-326.el7_9.3                                         updates                          3.6 M
 glibc-common                                           x86_64                          2.17-326.el7_9.3                                         updates                           12 M
 grub2                                                  x86_64                          1:2.02-0.87.0.2.el7.centos.14                            updates                           35 k
 grub2-common                                           noarch                          1:2.02-0.87.0.2.el7.centos.14                            updates                          733 k
 grub2-pc                                               x86_64                          1:2.02-0.87.0.2.el7.centos.14                            updates                           35 k
 grub2-pc-modules                                       noarch                          1:2.02-0.87.0.2.el7.centos.14                            updates                          861 k
 grub2-tools                                            x86_64                          1:2.02-0.87.0.2.el7.centos.14                            updates                          1.8 M
 grub2-tools-extra                                      x86_64                          1:2.02-0.87.0.2.el7.centos.14                            updates                          1.0 M
 grub2-tools-minimal                                    x86_64                          1:2.02-0.87.0.2.el7.centos.14                            updates                          178 k
 gzip                                                   x86_64                          1.5-11.el7_9                                             updates                          130 k
 initscripts                                            x86_64                          9.49.53-1.el7_9.1                                        updates                          440 k
 iprutils                                               x86_64                          2.4.17.1-3.el7_7                                         updates                          243 k
 iwl100-firmware                                        noarch                          39.31.5.1-83.el7_9                                       updates                          156 k
 iwl1000-firmware                                       noarch                          1:39.31.5.1-83.el7_9                                     updates                          215 k
 iwl105-firmware                                        noarch                          18.168.6.1-83.el7_9                                      updates                          235 k
 iwl135-firmware                                        noarch                          18.168.6.1-83.el7_9                                      updates                          243 k
 iwl2000-firmware                                       noarch                          18.168.6.1-83.el7_9                                      updates                          237 k
 iwl2030-firmware                                       noarch                          18.168.6.1-83.el7_9                                      updates                          246 k
 iwl3160-firmware                                       noarch                          25.30.13.0-83.el7_9                                      updates                          1.5 M
 iwl3945-firmware                                       noarch                          15.32.2.9-83.el7_9                                       updates                           97 k
 iwl4965-firmware                                       noarch                          228.61.2.24-83.el7_9                                     updates                          110 k
 iwl5000-firmware                                       noarch                          8.83.5.1_1-83.el7_9                                      updates                          290 k
 iwl5150-firmware                                       noarch                          8.24.2.2-83.el7_9                                        updates                          152 k
 iwl6000-firmware                                       noarch                          9.221.4.1-83.el7_9                                       updates                          172 k
 iwl6000g2a-firmware                                    noarch                          18.168.6.1-83.el7_9                                      updates                          305 k
 iwl6000g2b-firmware                                    noarch                          18.168.6.1-83.el7_9                                      updates                          305 k
 iwl6050-firmware                                       noarch                          41.28.5.1-83.el7_9                                       updates                          242 k
 iwl7260-firmware                                       noarch                          25.30.13.0-83.el7_9                                      updates                           14 M
 kbd                                                    x86_64                          1.15.5-16.el7_9                                          updates                          347 k
 kbd-legacy                                             noarch                          1.15.5-16.el7_9                                          updates                          466 k
 kbd-misc                                               noarch                          1.15.5-16.el7_9                                          updates                          1.4 M
 kernel-tools                                           x86_64                          3.10.0-1160.119.1.el7                                    updates                          8.2 M
 kernel-tools-libs                                      x86_64                          3.10.0-1160.119.1.el7                                    updates                          8.1 M
 kexec-tools                                            x86_64                          2.0.15-51.el7_9.3                                        updates                          351 k
 kpartx                                                 x86_64                          0.4.9-136.el7_9                                          updates                           81 k
 krb5-libs                                              x86_64                          1.15.1-55.el7_9                                          updates                          810 k
 less                                                   x86_64                          458-10.el7_9                                             updates                          120 k
 libblkid                                               x86_64                          2.23.2-65.el7_9.1                                        updates                          183 k
 libcroco                                               x86_64                          0.6.12-6.el7_9                                           updates                          105 k
 libcurl                                                x86_64                          7.29.0-59.el7_9.2                                        updates                          223 k
 libmount                                               x86_64                          2.23.2-65.el7_9.1                                        updates                          185 k
 libsmartcols                                           x86_64                          2.23.2-65.el7_9.1                                        updates                          143 k
 libssh2                                                x86_64                          1.8.0-4.el7_9.1                                          updates                           88 k
 libuuid                                                x86_64                          2.23.2-65.el7_9.1                                        updates                           84 k
 libxml2                                                x86_64                          2.9.1-6.el7_9.6                                          updates                          668 k
 linux-firmware                                         noarch                          20200421-83.git78c0348.el7_9                             updates                           80 M
 lvm2                                                   x86_64                          7:2.02.187-6.el7_9.5                                     updates                          1.3 M
 lvm2-libs                                              x86_64                          7:2.02.187-6.el7_9.5                                     updates                          1.1 M
 microcode_ctl                                          x86_64                          2:2.1-73.20.el7_9                                        updates                          6.8 M
 nspr                                                   x86_64                          4.35.0-1.el7_9                                           updates                          128 k
 nss                                                    x86_64                          3.90.0-2.el7_9                                           updates                          905 k
 nss-pem                                                x86_64                          1.0.3-7.el7_9.1                                          updates                           75 k
 nss-softokn                                            x86_64                          3.90.0-6.el7_9                                           updates                          383 k
 nss-softokn-freebl                                     x86_64                          3.90.0-6.el7_9                                           updates                          321 k
 nss-sysinit                                            x86_64                          3.90.0-2.el7_9                                           updates                           67 k
 nss-tools                                              x86_64                          3.90.0-2.el7_9                                           updates                          557 k
 nss-util                                               x86_64                          3.90.0-1.el7_9                                           updates                           80 k
 open-vm-tools                                          x86_64                          11.0.5-3.el7_9.9                                         updates                          680 k
 openldap                                               x86_64                          2.4.44-25.el7_9                                          updates                          356 k
 openssh                                                x86_64                          7.4p1-23.el7_9                                           updates                          510 k
 openssh-clients                                        x86_64                          7.4p1-23.el7_9                                           updates                          655 k
 openssh-server                                         x86_64                          7.4p1-23.el7_9                                           updates                          459 k
 openssl                                                x86_64                          1:1.0.2k-26.el7_9                                        updates                          494 k
 openssl-libs                                           x86_64                          1:1.0.2k-26.el7_9                                        updates                          1.2 M
 polkit                                                 x86_64                          0.112-26.el7_9.1                                         updates                          170 k
 python                                                 x86_64                          2.7.5-94.el7_9                                           updates                           97 k
 python-firewall                                        noarch                          0.6.3-13.el7_9                                           updates                          355 k
 python-libs                                            x86_64                          2.7.5-94.el7_9                                           updates                          5.6 M
 python-perf                                            x86_64                          3.10.0-1160.119.1.el7                                    updates                          8.2 M
 rpm                                                    x86_64                          4.11.3-48.el7_9                                          updates                          1.2 M
 rpm-build-libs                                         x86_64                          4.11.3-48.el7_9                                          updates                          108 k
 rpm-libs                                               x86_64                          4.11.3-48.el7_9                                          updates                          279 k
 rpm-python                                             x86_64                          4.11.3-48.el7_9                                          updates                           84 k
 rsyslog                                                x86_64                          8.24.0-57.el7_9.3                                        updates                          622 k
 selinux-policy                                         noarch                          3.13.1-268.el7_9.2                                       updates                          498 k
 selinux-policy-targeted                                noarch                          3.13.1-268.el7_9.2                                       updates                          7.0 M
 sudo                                                   x86_64                          1.8.23-10.el7_9.3                                        updates                          844 k
 systemd                                                x86_64                          219-78.el7_9.9                                           updates                          5.1 M
 systemd-libs                                           x86_64                          219-78.el7_9.9                                           updates                          419 k
 systemd-sysv                                           x86_64                          219-78.el7_9.9                                           updates                           98 k
 tuned                                                  noarch                          2.11.0-12.el7_9                                          updates                          270 k
 tzdata                                                 noarch                          2024a-1.el7                                              updates                          497 k
 util-linux                                             x86_64                          2.23.2-65.el7_9.1                                        updates                          2.0 M
 vim-minimal                                            x86_64                          2:7.4.629-8.el7_9                                        updates                          443 k
 virt-what                                              x86_64                          1.18-4.el7_9.1                                           updates                           30 k
 wpa_supplicant                                         x86_64                          1:2.6-12.el7_9.2                                         updates                          1.2 M
 xmlsec1                                                x86_64                          1.2.20-8.el7_9                                           updates                          177 k
 xmlsec1-openssl                                        x86_64                          1.2.20-8.el7_9                                           updates                           76 k
 xz                                                     x86_64                          5.2.2-2.el7_9                                            updates                          229 k
 xz-libs                                                x86_64                          5.2.2-2.el7_9                                            updates                          103 k
 zlib                                                   x86_64                          1.2.7-21.el7_9                                           updates                           90 k

事务概要
========================================================================================================================================================================================
安装    1 软件包
升级  120 软件包

总下载量:267 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
警告:/var/cache/yum/x86_64/7/updates/packages/NetworkManager-1.18.8-2.el7_9.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID f4a80eb5: NOKEY           ] 1.0 MB/s | 2.7 MB  00:04:17 ETA
NetworkManager-1.18.8-2.el7_9.x86_64.rpm 的公钥尚未安装
(1/121): NetworkManager-1.18.8-2.el7_9.x86_64.rpm                                                                                                                | 1.9 MB  00:00:02
(2/121): NetworkManager-team-1.18.8-2.el7_9.x86_64.rpm                                                                                                           | 165 kB  00:00:00
(3/121): NetworkManager-libnm-1.18.8-2.el7_9.x86_64.rpm                                                                                                          | 1.7 MB  00:00:02
(4/121): NetworkManager-tui-1.18.8-2.el7_9.x86_64.rpm                                                                                                            | 329 kB  00:00:00
(5/121): bash-4.2.46-35.el7_9.x86_64.rpm                                                                                                                         | 1.0 MB  00:00:02
(6/121): bind-export-libs-9.11.4-26.P2.el7_9.16.x86_64.rpm                                                                                                       | 1.1 MB  00:00:02
(7/121): ca-certificates-2023.2.60_v7.0.306-72.el7_9.noarch.rpm                                                                                                  | 923 kB  00:00:00
(8/121): centos-release-7-9.2009.2.el7.centos.x86_64.rpm                                                                                                         |  27 kB  00:00:00
(9/121): coreutils-8.22-24.el7_9.2.x86_64.rpm                                                                                                                    | 3.3 MB  00:00:04
(10/121): cronie-1.4.11-25.el7_9.x86_64.rpm                                                                                                                      |  92 kB  00:00:01
(11/121): binutils-2.27-44.base.el7_9.1.x86_64.rpm                                                                                                               | 5.9 MB  00:00:08
(12/121): cronie-anacron-1.4.11-25.el7_9.x86_64.rpm                                                                                                              |  36 kB  00:00:00
(13/121): cyrus-sasl-lib-2.1.26-24.el7_9.x86_64.rpm                                                                                                              | 156 kB  00:00:00
(14/121): curl-7.29.0-59.el7_9.2.x86_64.rpm                                                                                                                      | 271 kB  00:00:00
(15/121): device-mapper-event-1.02.170-6.el7_9.5.x86_64.rpm                                                                                                      | 192 kB  00:00:00
(16/121): device-mapper-1.02.170-6.el7_9.5.x86_64.rpm                                                                                                            | 297 kB  00:00:00
(17/121): device-mapper-event-libs-1.02.170-6.el7_9.5.x86_64.rpm                                                                                                 | 192 kB  00:00:00
(18/121): device-mapper-libs-1.02.170-6.el7_9.5.x86_64.rpm                                                                                                       | 325 kB  00:00:00
(19/121): device-mapper-persistent-data-0.8.5-3.el7_9.2.x86_64.rpm                                                                                               | 423 kB  00:00:00
(20/121): dhcp-common-4.2.5-83.el7.centos.2.x86_64.rpm                                                                                                           | 177 kB  00:00:00
(21/121): dhclient-4.2.5-83.el7.centos.2.x86_64.rpm                                                                                                              | 286 kB  00:00:00
(22/121): dhcp-libs-4.2.5-83.el7.centos.2.x86_64.rpm                                                                                                             | 133 kB  00:00:00
(23/121): dmidecode-3.2-5.el7_9.1.x86_64.rpm                                                                                                                     |  82 kB  00:00:00
(24/121): diffutils-3.3-6.el7_9.x86_64.rpm                                                                                                                       | 322 kB  00:00:01
(25/121): expat-2.1.0-15.el7_9.x86_64.rpm                                                                                                                        |  83 kB  00:00:01
(26/121): firewalld-filesystem-0.6.3-13.el7_9.noarch.rpm                                                                                                         |  51 kB  00:00:00
(27/121): freetype-2.8-14.el7_9.1.x86_64.rpm                                                                                                                     | 380 kB  00:00:00
(28/121): firewalld-0.6.3-13.el7_9.noarch.rpm                                                                                                                    | 449 kB  00:00:00
glib2-2.56.1-9.el7_9.x86_64.rp FAILED                                          % [======                                                              ]  339 B/s |  24 MB 208:06:46 ETA
http://mirrors.aliyun.com/centos/7/updates/x86_64/Packages/glib2-2.56.1-9.el7_9.x86_64.rpm: [Errno 12] Timeout on http://mirrors.aliyun.com/centos/7/updates/x86_64/Packages/glib2-2.56.1-9.el7_9.x86_64.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
正在尝试其它镜像。
glibc-2.17-326.el7_9.3.x86_64. FAILED                                          % [=====-                                                              ]  0.0 B/s |  23 MB  --:--:-- ETA
http://mirrors.aliyun.com/centos/7/updates/x86_64/Packages/glibc-2.17-326.el7_9.3.x86_64.rpm: [Errno 12] Timeout on http://mirrors.aliyun.com/centos/7/updates/x86_64/Packages/glibc-2.17-326.el7_9.3.x86_64.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
正在尝试其它镜像。
(29/121): glibc-common-2.17-326.el7_9.3.x86_64.rpm                                                                                                               |  12 MB  00:00:07
(30/121): grub2-2.02-0.87.0.2.el7.centos.14.x86_64.rpm                                                                                                           |  35 kB  00:00:00
(31/121): grub2-common-2.02-0.87.0.2.el7.centos.14.noarch.rpm                                                                                                    | 733 kB  00:00:00
(32/121): grub2-pc-2.02-0.87.0.2.el7.centos.14.x86_64.rpm                                                                                                        |  35 kB  00:00:00
(33/121): grub2-pc-modules-2.02-0.87.0.2.el7.centos.14.noarch.rpm                                                                                                | 861 kB  00:00:00
(34/121): grub2-tools-2.02-0.87.0.2.el7.centos.14.x86_64.rpm                                                                                                     | 1.8 MB  00:00:01
(35/121): grub2-tools-extra-2.02-0.87.0.2.el7.centos.14.x86_64.rpm                                                                                               | 1.0 MB  00:00:01
(36/121): grub2-tools-minimal-2.02-0.87.0.2.el7.centos.14.x86_64.rpm                                                                                             | 178 kB  00:00:00
(37/121): gzip-1.5-11.el7_9.x86_64.rpm                                                                                                                           | 130 kB  00:00:00
(38/121): initscripts-9.49.53-1.el7_9.1.x86_64.rpm                                                                                                               | 440 kB  00:00:00
(39/121): iprutils-2.4.17.1-3.el7_7.x86_64.rpm                                                                                                                   | 243 kB  00:00:00
(40/121): iwl100-firmware-39.31.5.1-83.el7_9.noarch.rpm                                                                                                          | 156 kB  00:00:00
(41/121): iwl1000-firmware-39.31.5.1-83.el7_9.noarch.rpm                                                                                                         | 215 kB  00:00:00
(42/121): iwl105-firmware-18.168.6.1-83.el7_9.noarch.rpm                                                                                                         | 235 kB  00:00:00
(43/121): iwl135-firmware-18.168.6.1-83.el7_9.noarch.rpm                                                                                                         | 243 kB  00:00:00
(44/121): iwl2000-firmware-18.168.6.1-83.el7_9.noarch.rpm                                                                                                        | 237 kB  00:00:00
(45/121): iwl2030-firmware-18.168.6.1-83.el7_9.noarch.rpm                                                                                                        | 246 kB  00:00:00
(46/121): iwl3160-firmware-25.30.13.0-83.el7_9.noarch.rpm                                                                                                        | 1.5 MB  00:00:00
(47/121): iwl3945-firmware-15.32.2.9-83.el7_9.noarch.rpm                                                                                                         |  97 kB  00:00:00
(48/121): iwl4965-firmware-228.61.2.24-83.el7_9.noarch.rpm                                                                                                       | 110 kB  00:00:00
(49/121): iwl5000-firmware-8.83.5.1_1-83.el7_9.noarch.rpm                                                                                                        | 290 kB  00:00:00
(50/121): iwl5150-firmware-8.24.2.2-83.el7_9.noarch.rpm                                                                                                          | 152 kB  00:00:00
(51/121): iwl6000-firmware-9.221.4.1-83.el7_9.noarch.rpm                                                                                                         | 172 kB  00:00:00
(52/121): iwl6000g2a-firmware-18.168.6.1-83.el7_9.noarch.rpm                                                                                                     | 305 kB  00:00:00
(53/121): iwl6000g2b-firmware-18.168.6.1-83.el7_9.noarch.rpm                                                                                                     | 305 kB  00:00:00
(54/121): iwl6050-firmware-41.28.5.1-83.el7_9.noarch.rpm                                                                                                         | 242 kB  00:00:00
(55/121): iwl7260-firmware-25.30.13.0-83.el7_9.noarch.rpm                                                                                                        |  14 MB  00:00:12
(56/121): kbd-1.15.5-16.el7_9.x86_64.rpm                                                                                                                         | 347 kB  00:00:00
(57/121): kbd-legacy-1.15.5-16.el7_9.noarch.rpm                                                                                                                  | 466 kB  00:00:00
(58/121): kbd-misc-1.15.5-16.el7_9.noarch.rpm                                                                                                                    | 1.4 MB  00:00:02
(59/121): kernel-3.10.0-1160.119.1.el7.x86_64.rpm                                                                                                                |  52 MB  00:01:59
kernel-tools-3.10.0-1160.119.1 FAILED                                          2% [============================                                       ]  437 B/s | 112 MB 102:55:56 ETA
http://mirrors.aliyun.com/centos/7/updates/x86_64/Packages/kernel-tools-3.10.0-1160.119.1.el7.x86_64.rpm: [Errno 12] Timeout on http://mirrors.aliyun.com/centos/7/updates/x86_64/Packages/kernel-tools-3.10.0-1160.119.1.el7.x86_64.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
正在尝试其它镜像。
(60/121): kernel-tools-libs-3.10.0-1160.119.1.el7.x86_64.rpm                                                                                                     | 8.1 MB  00:00:07
(61/121): kexec-tools-2.0.15-51.el7_9.3.x86_64.rpm                                                                                                               | 351 kB  00:00:00
(62/121): kpartx-0.4.9-136.el7_9.x86_64.rpm                                                                                                                      |  81 kB  00:00:00
(63/121): krb5-libs-1.15.1-55.el7_9.x86_64.rpm                                                                                                                   | 810 kB  00:00:00
(64/121): less-458-10.el7_9.x86_64.rpm                                                                                                                           | 120 kB  00:00:00
(65/121): libblkid-2.23.2-65.el7_9.1.x86_64.rpm                                                                                                                  | 183 kB  00:00:00
(66/121): libcroco-0.6.12-6.el7_9.x86_64.rpm                                                                                                                     | 105 kB  00:00:00
(67/121): libcurl-7.29.0-59.el7_9.2.x86_64.rpm                                                                                                                   | 223 kB  00:00:00
(68/121): libmount-2.23.2-65.el7_9.1.x86_64.rpm                                                                                                                  | 185 kB  00:00:00
(69/121): libsmartcols-2.23.2-65.el7_9.1.x86_64.rpm                                                                                                              | 143 kB  00:00:00
(70/121): libssh2-1.8.0-4.el7_9.1.x86_64.rpm                                                                                                                     |  88 kB  00:00:00
(71/121): libuuid-2.23.2-65.el7_9.1.x86_64.rpm                                                                                                                   |  84 kB  00:00:00
(72/121): libxml2-2.9.1-6.el7_9.6.x86_64.rpm                                                                                                                     | 668 kB  00:00:00
(73/121): linux-firmware-20200421-83.git78c0348.el7_9.noarch.rpm                                                                                                 |  80 MB  00:02:02
(74/121): lvm2-2.02.187-6.el7_9.5.x86_64.rpm                                                                                                                     | 1.3 MB  00:00:00
(75/121): lvm2-libs-2.02.187-6.el7_9.5.x86_64.rpm                                                                                                                | 1.1 MB  00:00:00
(76/121): microcode_ctl-2.1-73.20.el7_9.x86_64.rpm                                                                                                               | 6.8 MB  00:00:03
(77/121): nspr-4.35.0-1.el7_9.x86_64.rpm                                                                                                                         | 128 kB  00:00:00
(78/121): nss-3.90.0-2.el7_9.x86_64.rpm                                                                                                                          | 905 kB  00:00:00
(79/121): nss-pem-1.0.3-7.el7_9.1.x86_64.rpm                                                                                                                     |  75 kB  00:00:00
(80/121): nss-softokn-3.90.0-6.el7_9.x86_64.rpm                                                                                                                  | 383 kB  00:00:00
(81/121): nss-softokn-freebl-3.90.0-6.el7_9.x86_64.rpm                                                                                                           | 321 kB  00:00:00
(82/121): nss-sysinit-3.90.0-2.el7_9.x86_64.rpm                                                                                                                  |  67 kB  00:00:00
(83/121): nss-tools-3.90.0-2.el7_9.x86_64.rpm                                                                                                                    | 557 kB  00:00:00
(84/121): nss-util-3.90.0-1.el7_9.x86_64.rpm                                                                                                                     |  80 kB  00:00:00
(85/121): open-vm-tools-11.0.5-3.el7_9.9.x86_64.rpm                                                                                                              | 680 kB  00:00:00
(86/121): openldap-2.4.44-25.el7_9.x86_64.rpm                                                                                                                    | 356 kB  00:00:00
(87/121): openssh-7.4p1-23.el7_9.x86_64.rpm                                                                                                                      | 510 kB  00:00:00
(88/121): openssh-clients-7.4p1-23.el7_9.x86_64.rpm                                                                                                              | 655 kB  00:00:00
(89/121): openssh-server-7.4p1-23.el7_9.x86_64.rpm                                                                                                               | 459 kB  00:00:00
(90/121): openssl-1.0.2k-26.el7_9.x86_64.rpm                                                                                                                     | 494 kB  00:00:04
(91/121): openssl-libs-1.0.2k-26.el7_9.x86_64.rpm                                                                                                                | 1.2 MB  00:00:22
(92/121): polkit-0.112-26.el7_9.1.x86_64.rpm                                                                                                                     | 170 kB  00:00:07
(93/121): python-2.7.5-94.el7_9.x86_64.rpm                                                                                                                       |  97 kB  00:00:04
(94/121): python-firewall-0.6.3-13.el7_9.noarch.rpm                                                                                                              | 355 kB  00:00:01
(95/121): python-libs-2.7.5-94.el7_9.x86_64.rpm                                                                                                                  | 5.6 MB  00:00:43
(96/121): python-perf-3.10.0-1160.119.1.el7.x86_64.rpm                                                                                                           | 8.2 MB  00:00:06
(97/121): rpm-4.11.3-48.el7_9.x86_64.rpm                                                                                                                         | 1.2 MB  00:00:01
(98/121): rpm-build-libs-4.11.3-48.el7_9.x86_64.rpm                                                                                                              | 108 kB  00:00:00
(99/121): rpm-libs-4.11.3-48.el7_9.x86_64.rpm                                                                                                                    | 279 kB  00:00:00
(100/121): rpm-python-4.11.3-48.el7_9.x86_64.rpm                                                                                                                 |  84 kB  00:00:00
(101/121): rsyslog-8.24.0-57.el7_9.3.x86_64.rpm                                                                                                                  | 622 kB  00:00:00
(102/121): selinux-policy-3.13.1-268.el7_9.2.noarch.rpm                                                                                                          | 498 kB  00:00:07
(103/121): selinux-policy-targeted-3.13.1-268.el7_9.2.noarch.rpm                                                                                                 | 7.0 MB  00:00:11
(104/121): sudo-1.8.23-10.el7_9.3.x86_64.rpm                                                                                                                     | 844 kB  00:00:02
(105/121): systemd-219-78.el7_9.9.x86_64.rpm                                                                                                                     | 5.1 MB  00:00:06
(106/121): systemd-libs-219-78.el7_9.9.x86_64.rpm                                                                                                                | 419 kB  00:00:00
(107/121): systemd-sysv-219-78.el7_9.9.x86_64.rpm                                                                                                                |  98 kB  00:00:00
(108/121): tuned-2.11.0-12.el7_9.noarch.rpm                                                                                                                      | 270 kB  00:00:00
(109/121): tzdata-2024a-1.el7.noarch.rpm                                                                                                                         | 497 kB  00:00:00
(110/121): util-linux-2.23.2-65.el7_9.1.x86_64.rpm                                                                                                               | 2.0 MB  00:00:02
(111/121): vim-minimal-7.4.629-8.el7_9.x86_64.rpm                                                                                                                | 443 kB  00:00:01
(112/121): virt-what-1.18-4.el7_9.1.x86_64.rpm                                                                                                                   |  30 kB  00:00:00
(113/121): wpa_supplicant-2.6-12.el7_9.2.x86_64.rpm                                                                                                              | 1.2 MB  00:00:07
(114/121): xmlsec1-1.2.20-8.el7_9.x86_64.rpm                                                                                                                     | 177 kB  00:00:01
(115/121): xmlsec1-openssl-1.2.20-8.el7_9.x86_64.rpm                                                                                                             |  76 kB  00:00:00
(116/121): xz-5.2.2-2.el7_9.x86_64.rpm                                                                                                                           | 229 kB  00:00:02
(117/121): xz-libs-5.2.2-2.el7_9.x86_64.rpm                                                                                                                      | 103 kB  00:00:01
(118/121): zlib-1.2.7-21.el7_9.x86_64.rpm                                                                                                                        |  90 kB  00:00:00
glibc-2.17-326.el7_9.3.x86_64. FAILED
http://mirrors.cloud.aliyuncs.com/centos/7/updates/x86_64/Packages/glibc-2.17-326.el7_9.3.x86_64.rpm: [Errno 14] curl#7 - "Failed connect to mirrors.cloud.aliyuncs.com:80; Connection refused"
正在尝试其它镜像。
glib2-2.56.1-9.el7_9.x86_64.rp FAILED
http://mirrors.aliyuncs.com/centos/7/updates/x86_64/Packages/glib2-2.56.1-9.el7_9.x86_64.rpm: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connection refused"49 ETA
正在尝试其它镜像。
kernel-tools-3.10.0-1160.119.1 FAILED
http://mirrors.aliyuncs.com/centos/7/updates/x86_64/Packages/kernel-tools-3.10.0-1160.119.1.el7.x86_64.rpm: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connection refused"
正在尝试其它镜像。
glibc-2.17-326.el7_9.3.x86_64. FAILED
http://mirrors.aliyuncs.com/centos/7/updates/x86_64/Packages/glibc-2.17-326.el7_9.3.x86_64.rpm: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connection refused" ETA
正在尝试其它镜像。
glib2-2.56.1-9.el7_9.x86_64.rp FAILED
http://mirrors.cloud.aliyuncs.com/centos/7/updates/x86_64/Packages/glib2-2.56.1-9.el7_9.x86_64.rpm: [Errno 14] curl#7 - "Failed connect to mirrors.cloud.aliyuncs.com:80; Connection refused"
正在尝试其它镜像。
(119/121): glibc-2.17-326.el7_9.3.x86_64.rpm                                                                                                                     | 3.6 MB  00:00:00
(120/121): glib2-2.56.1-9.el7_9.x86_64.rpm                                                                                                                       | 2.5 MB  00:00:02
kernel-tools-3.10.0-1160.119.1 FAILED
http://mirrors.cloud.aliyuncs.com/centos/7/updates/x86_64/Packages/kernel-tools-3.10.0-1160.119.1.el7.x86_64.rpm: [Errno 14] curl#7 - "Failed connect to mirrors.cloud.aliyuncs.com:80; Connection refused"
正在尝试其它镜像。
(121/121): kernel-tools-3.10.0-1160.119.1.el7.x86_64.rpm                                                                                                         | 8.2 MB  00:00:05
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                                                                    453 kB/s | 267 MB  00:10:03
从 http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 检索密钥
导入 GPG key 0xF4A80EB5:
 用户ID     : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
 指纹       : 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 来自       : http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
是否继续?[y/N]:y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在更新    : 1:grub2-common-2.02-0.87.0.2.el7.centos.14.noarch                                                                                                                 1/241
  正在更新    : centos-release-7-9.2009.2.el7.centos.x86_64                                                                                                                       2/241
  正在更新    : 1:grub2-pc-modules-2.02-0.87.0.2.el7.centos.14.noarch                                                                                                             3/241
  正在更新    : kbd-misc-1.15.5-16.el7_9.noarch                                                                                                                                   4/241
  正在更新    : kbd-legacy-1.15.5-16.el7_9.noarch                                                                                                                                 5/241
  正在更新    : tzdata-2024a-1.el7.noarch                                                                                                                                         6/241
  正在更新    : bash-4.2.46-35.el7_9.x86_64                                                                                                                                       7/241
  正在更新    : nss-softokn-freebl-3.90.0-6.el7_9.x86_64                                                                                                                          8/241
  正在更新    : glibc-common-2.17-326.el7_9.3.x86_64                                                                                                                              9/241
  正在更新    : glibc-2.17-326.el7_9.3.x86_64                                                                                                                                    10/241
  正在更新    : nspr-4.35.0-1.el7_9.x86_64                                                                                                                                       11/241
  正在更新    : nss-util-3.90.0-1.el7_9.x86_64                                                                                                                                   12/241
  正在更新    : zlib-1.2.7-21.el7_9.x86_64                                                                                                                                       13/241
  正在更新    : xz-libs-5.2.2-2.el7_9.x86_64                                                                                                                                     14/241
  正在更新    : systemd-libs-219-78.el7_9.9.x86_64                                                                                                                               15/241
  正在更新    : libuuid-2.23.2-65.el7_9.1.x86_64                                                                                                                                 16/241
  正在更新    : libxml2-2.9.1-6.el7_9.6.x86_64                                                                                                                                   17/241
  正在更新    : expat-2.1.0-15.el7_9.x86_64                                                                                                                                      18/241
  正在更新    : xmlsec1-1.2.20-8.el7_9.x86_64                                                                                                                                    19/241
  正在更新    : nss-softokn-3.90.0-6.el7_9.x86_64                                                                                                                                20/241
  正在更新    : device-mapper-persistent-data-0.8.5-3.el7_9.2.x86_64                                                                                                             21/241
  正在更新    : freetype-2.8-14.el7_9.1.x86_64                                                                                                                                   22/241
  正在更新    : libsmartcols-2.23.2-65.el7_9.1.x86_64                                                                                                                            23/241
  正在更新    : 1:dmidecode-3.2-5.el7_9.1.x86_64                                                                                                                                 24/241
  正在更新    : 2:vim-minimal-7.4.629-8.el7_9.x86_64                                                                                                                             25/241
  正在更新    : kernel-tools-libs-3.10.0-1160.119.1.el7.x86_64                                                                                                                   26/241
  正在更新    : diffutils-3.3-6.el7_9.x86_64                                                                                                                                     27/241
  正在更新    : linux-firmware-20200421-83.git78c0348.el7_9.noarch                                                                                                               28/241
  正在更新    : ca-certificates-2023.2.60_v7.0.306-72.el7_9.noarch                                                                                                               29/241
  正在更新    : 1:openssl-libs-1.0.2k-26.el7_9.x86_64                                                                                                                            30/241
  正在更新    : coreutils-8.22-24.el7_9.2.x86_64                                                                                                                                 31/241
  正在更新    : krb5-libs-1.15.1-55.el7_9.x86_64                                                                                                                                 32/241
  正在更新    : libblkid-2.23.2-65.el7_9.1.x86_64                                                                                                                                33/241
  正在更新    : libmount-2.23.2-65.el7_9.1.x86_64                                                                                                                                34/241
  正在更新    : glib2-2.56.1-9.el7_9.x86_64                                                                                                                                      35/241
  正在更新    : util-linux-2.23.2-65.el7_9.1.x86_64                                                                                                                              36/241
  正在更新    : python-libs-2.7.5-94.el7_9.x86_64                                                                                                                                37/241
  正在更新    : python-2.7.5-94.el7_9.x86_64                                                                                                                                     38/241
  正在更新    : python-perf-3.10.0-1160.119.1.el7.x86_64                                                                                                                         39/241
  正在更新    : python-firewall-0.6.3-13.el7_9.noarch                                                                                                                            40/241
  正在更新    : virt-what-1.18-4.el7_9.1.x86_64                                                                                                                                  41/241
  正在更新    : 32:bind-export-libs-9.11.4-26.P2.el7_9.16.x86_64                                                                                                                 42/241
  正在更新    : cyrus-sasl-lib-2.1.26-24.el7_9.x86_64                                                                                                                            43/241
  正在更新    : selinux-policy-3.13.1-268.el7_9.2.noarch                                                                                                                         44/241
  正在更新    : nss-pem-1.0.3-7.el7_9.1.x86_64                                                                                                                                   45/241
  正在更新    : nss-sysinit-3.90.0-2.el7_9.x86_64                                                                                                                                46/241
  正在更新    : nss-3.90.0-2.el7_9.x86_64                                                                                                                                        47/241
  正在更新    : 1:NetworkManager-libnm-1.18.8-2.el7_9.x86_64                                                                                                                     48/241
  正在更新    : nss-tools-3.90.0-2.el7_9.x86_64                                                                                                                                  49/241
  正在更新    : libssh2-1.8.0-4.el7_9.1.x86_64                                                                                                                                   50/241
  正在更新    : libcurl-7.29.0-59.el7_9.2.x86_64                                                                                                                                 51/241
  正在更新    : curl-7.29.0-59.el7_9.2.x86_64                                                                                                                                    52/241
  正在更新    : rpm-libs-4.11.3-48.el7_9.x86_64                                                                                                                                  53/241
  正在更新    : rpm-4.11.3-48.el7_9.x86_64                                                                                                                                       54/241
  正在更新    : openldap-2.4.44-25.el7_9.x86_64                                                                                                                                  55/241
  正在更新    : systemd-219-78.el7_9.9.x86_64                                                                                                                                    56/241
  正在更新    : initscripts-9.49.53-1.el7_9.1.x86_64                                                                                                                             57/241
  正在更新    : 7:device-mapper-libs-1.02.170-6.el7_9.5.x86_64                                                                                                                   58/241
  正在更新    : 7:device-mapper-1.02.170-6.el7_9.5.x86_64                                                                                                                        59/241
  正在更新    : 1:grub2-tools-minimal-2.02-0.87.0.2.el7.centos.14.x86_64                                                                                                         60/241
  正在更新    : 7:device-mapper-event-libs-1.02.170-6.el7_9.5.x86_64                                                                                                             61/241
  正在更新    : 1:grub2-tools-2.02-0.87.0.2.el7.centos.14.x86_64                                                                                                                 62/241
  正在更新    : polkit-0.112-26.el7_9.1.x86_64                                                                                                                                   63/241
  正在更新    : openssh-7.4p1-23.el7_9.x86_64                                                                                                                                    64/241
  正在更新    : 12:dhcp-libs-4.2.5-83.el7.centos.2.x86_64                                                                                                                        65/241
  正在更新    : 12:dhcp-common-4.2.5-83.el7.centos.2.x86_64                                                                                                                      66/241
  正在更新    : 1:grub2-tools-extra-2.02-0.87.0.2.el7.centos.14.x86_64                                                                                                           67/241
  正在更新    : 1:grub2-pc-2.02-0.87.0.2.el7.centos.14.x86_64                                                                                                                    68/241
  正在更新    : 7:device-mapper-event-1.02.170-6.el7_9.5.x86_64                                                                                                                  69/241
  正在更新    : 7:lvm2-libs-2.02.187-6.el7_9.5.x86_64                                                                                                                            70/241
  正在更新    : cronie-anacron-1.4.11-25.el7_9.x86_64                                                                                                                            71/241
  正在更新    : cronie-1.4.11-25.el7_9.x86_64                                                                                                                                    72/241
  正在更新    : systemd-sysv-219-78.el7_9.9.x86_64                                                                                                                               73/241
  正在更新    : 1:wpa_supplicant-2.6-12.el7_9.2.x86_64                                                                                                                           74/241
  正在更新    : 1:NetworkManager-1.18.8-2.el7_9.x86_64                                                                                                                           75/241
  正在更新    : rpm-build-libs-4.11.3-48.el7_9.x86_64                                                                                                                            76/241
  正在更新    : xmlsec1-openssl-1.2.20-8.el7_9.x86_64                                                                                                                            77/241
  正在更新    : firewalld-filesystem-0.6.3-13.el7_9.noarch                                                                                                                       78/241
  正在更新    : firewalld-0.6.3-13.el7_9.noarch                                                                                                                                  79/241
  正在更新    : open-vm-tools-11.0.5-3.el7_9.9.x86_64                                                                                                                            80/241
  正在更新    : rpm-python-4.11.3-48.el7_9.x86_64                                                                                                                                81/241
  正在更新    : 1:NetworkManager-tui-1.18.8-2.el7_9.x86_64                                                                                                                       82/241
  正在更新    : 1:NetworkManager-team-1.18.8-2.el7_9.x86_64                                                                                                                      83/241
  正在更新    : 7:lvm2-2.02.187-6.el7_9.5.x86_64                                                                                                                                 84/241
  正在更新    : 1:grub2-2.02-0.87.0.2.el7.centos.14.x86_64                                                                                                                       85/241
  正在更新    : 12:dhclient-4.2.5-83.el7.centos.2.x86_64                                                                                                                         86/241
  正在更新    : openssh-server-7.4p1-23.el7_9.x86_64                                                                                                                             87/241
  正在更新    : openssh-clients-7.4p1-23.el7_9.x86_64                                                                                                                            88/241
  正在更新    : tuned-2.11.0-12.el7_9.noarch                                                                                                                                     89/241
  正在更新    : kpartx-0.4.9-136.el7_9.x86_64                                                                                                                                    90/241
  正在更新    : kbd-1.15.5-16.el7_9.x86_64                                                                                                                                       91/241
  正在安装    : kernel-3.10.0-1160.119.1.el7.x86_64                                                                                                                              92/241
  正在更新    : 2:microcode_ctl-2.1-73.20.el7_9.x86_64                                                                                                                           93/241
  正在更新    : kexec-tools-2.0.15-51.el7_9.3.x86_64                                                                                                                             94/241
  正在更新    : rsyslog-8.24.0-57.el7_9.3.x86_64                                                                                                                                 95/241
  正在更新    : sudo-1.8.23-10.el7_9.3.x86_64                                                                                                                                    96/241
  正在更新    : selinux-policy-targeted-3.13.1-268.el7_9.2.noarch                                                                                                                97/241
  正在更新    : libcroco-0.6.12-6.el7_9.x86_64                                                                                                                                   98/241
  正在更新    : 1:openssl-1.0.2k-26.el7_9.x86_64                                                                                                                                 99/241
  正在更新    : binutils-2.27-44.base.el7_9.1.x86_64                                                                                                                            100/241
  正在更新    : gzip-1.5-11.el7_9.x86_64                                                                                                                                        101/241
  正在更新    : kernel-tools-3.10.0-1160.119.1.el7.x86_64                                                                                                                       102/241
  正在更新    : xz-5.2.2-2.el7_9.x86_64                                                                                                                                         103/241
  正在更新    : iprutils-2.4.17.1-3.el7_7.x86_64                                                                                                                                104/241
  正在更新    : less-458-10.el7_9.x86_64                                                                                                                                        105/241
  正在更新    : iwl6050-firmware-41.28.5.1-83.el7_9.noarch                                                                                                                      106/241
  正在更新    : iwl4965-firmware-228.61.2.24-83.el7_9.noarch                                                                                                                    107/241
  正在更新    : iwl135-firmware-18.168.6.1-83.el7_9.noarch                                                                                                                      108/241
  正在更新    : iwl6000g2b-firmware-18.168.6.1-83.el7_9.noarch                                                                                                                  109/241
  正在更新    : iwl2030-firmware-18.168.6.1-83.el7_9.noarch                                                                                                                     110/241
  正在更新    : iwl3945-firmware-15.32.2.9-83.el7_9.noarch                                                                                                                      111/241
  正在更新    : iwl105-firmware-18.168.6.1-83.el7_9.noarch                                                                                                                      112/241
  正在更新    : iwl5150-firmware-8.24.2.2-83.el7_9.noarch                                                                                                                       113/241
  正在更新    : iwl6000-firmware-9.221.4.1-83.el7_9.noarch                                                                                                                      114/241
  正在更新    : iwl3160-firmware-25.30.13.0-83.el7_9.noarch                                                                                                                     115/241
  正在更新    : iwl2000-firmware-18.168.6.1-83.el7_9.noarch                                                                                                                     116/241
  正在更新    : iwl100-firmware-39.31.5.1-83.el7_9.noarch                                                                                                                       117/241
  正在更新    : iwl5000-firmware-8.83.5.1_1-83.el7_9.noarch                                                                                                                     118/241
  正在更新    : iwl7260-firmware-25.30.13.0-83.el7_9.noarch                                                                                                                     119/241
  正在更新    : 1:iwl1000-firmware-39.31.5.1-83.el7_9.noarch                                                                                                                    120/241
  正在更新    : iwl6000g2a-firmware-18.168.6.1-83.el7_9.noarch                                                                                                                  121/241
  清理        : 12:dhclient-4.2.5-82.el7.centos.x86_64                                                                                                                          122/241
  清理        : 2:microcode_ctl-2.1-73.el7.x86_64                                                                                                                               123/241
  清理        : tuned-2.11.0-9.el7.noarch                                                                                                                                       124/241
  清理        : firewalld-0.6.3-11.el7.noarch                                                                                                                                   125/241
  清理        : selinux-policy-targeted-3.13.1-268.el7.noarch                                                                                                                   126/241
  清理        : selinux-policy-3.13.1-268.el7.noarch                                                                                                                            127/241
  清理        : 1:grub2-2.02-0.86.el7.centos.x86_64                                                                                                                             128/241
  清理        : 1:grub2-pc-2.02-0.86.el7.centos.x86_64                                                                                                                          129/241
  清理        : 1:grub2-pc-modules-2.02-0.86.el7.centos.noarch                                                                                                                  130/241
  清理        : python-firewall-0.6.3-11.el7.noarch                                                                                                                             131/241
  清理        : 12:dhcp-common-4.2.5-82.el7.centos.x86_64                                                                                                                       132/241
  清理        : 12:dhcp-libs-4.2.5-82.el7.centos.x86_64                                                                                                                         133/241
  清理        : linux-firmware-20200421-79.git78c0348.el7.noarch                                                                                                                134/241
  清理        : open-vm-tools-11.0.5-3.el7.x86_64                                                                                                                               135/241
  清理        : rpm-python-4.11.3-45.el7.x86_64                                                                                                                                 136/241
  清理        : 1:NetworkManager-tui-1.18.8-1.el7.x86_64                                                                                                                        137/241
  清理        : openssh-server-7.4p1-21.el7.x86_64                                                                                                                              138/241
  清理        : 7:lvm2-2.02.187-6.el7.x86_64                                                                                                                                    139/241
  清理        : openssh-clients-7.4p1-21.el7.x86_64                                                                                                                             140/241
  清理        : 1:openssl-1.0.2k-19.el7.x86_64                                                                                                                                  141/241
  清理        : openssh-7.4p1-21.el7.x86_64                                                                                                                                     142/241
  清理        : 7:lvm2-libs-2.02.187-6.el7.x86_64                                                                                                                               143/241
  清理        : rpm-build-libs-4.11.3-45.el7.x86_64                                                                                                                             144/241
  清理        : xmlsec1-openssl-1.2.20-7.el7_4.x86_64                                                                                                                           145/241
  清理        : 1:grub2-tools-extra-2.02-0.86.el7.centos.x86_64                                                                                                                 146/241
  清理        : kexec-tools-2.0.15-51.el7.x86_64                                                                                                                                147/241
  清理        : 1:grub2-tools-2.02-0.86.el7.centos.x86_64                                                                                                                       148/241
  清理        : 7:device-mapper-event-1.02.170-6.el7.x86_64                                                                                                                     149/241
  清理        : rsyslog-8.24.0-55.el7.x86_64                                                                                                                                    150/241
  清理        : sudo-1.8.23-10.el7.x86_64                                                                                                                                       151/241
  清理        : 1:grub2-tools-minimal-2.02-0.86.el7.centos.x86_64                                                                                                               152/241
  清理        : xz-5.2.2-1.el7.x86_64                                                                                                                                           153/241
  清理        : binutils-2.27-44.base.el7.x86_64                                                                                                                                154/241
  清理        : kbd-1.15.5-15.el7.x86_64                                                                                                                                        155/241
  清理        : initscripts-9.49.53-1.el7.x86_64                                                                                                                                156/241
  清理        : kernel-tools-3.10.0-1160.el7.x86_64                                                                                                                             157/241
  清理        : kbd-legacy-1.15.5-15.el7.noarch                                                                                                                                 158/241
  清理        : kbd-misc-1.15.5-15.el7.noarch                                                                                                                                   159/241
  清理        : 1:grub2-common-2.02-0.86.el7.centos.noarch                                                                                                                      160/241
  清理        : firewalld-filesystem-0.6.3-11.el7.noarch                                                                                                                        161/241
  清理        : iwl6050-firmware-41.28.5.1-79.el7.noarch                                                                                                                        162/241
  清理        : iwl4965-firmware-228.61.2.24-79.el7.noarch                                                                                                                      163/241
  清理        : iwl135-firmware-18.168.6.1-79.el7.noarch                                                                                                                        164/241
  清理        : iwl6000g2b-firmware-18.168.6.1-79.el7.noarch                                                                                                                    165/241
  清理        : iwl2030-firmware-18.168.6.1-79.el7.noarch                                                                                                                       166/241
  清理        : iwl3945-firmware-15.32.2.9-79.el7.noarch                                                                                                                        167/241
  清理        : iwl105-firmware-18.168.6.1-79.el7.noarch                                                                                                                        168/241
  清理        : iwl5150-firmware-8.24.2.2-79.el7.noarch                                                                                                                         169/241
  清理        : iwl6000-firmware-9.221.4.1-79.el7.noarch                                                                                                                        170/241
  清理        : iwl3160-firmware-25.30.13.0-79.el7.noarch                                                                                                                       171/241
  清理        : iwl2000-firmware-18.168.6.1-79.el7.noarch                                                                                                                       172/241
  清理        : iwl100-firmware-39.31.5.1-79.el7.noarch                                                                                                                         173/241
  清理        : iwl5000-firmware-8.83.5.1_1-79.el7.noarch                                                                                                                       174/241
  清理        : iwl7260-firmware-25.30.13.0-79.el7.noarch                                                                                                                       175/241
  清理        : 1:iwl1000-firmware-39.31.5.1-79.el7.noarch                                                                                                                      176/241
  清理        : iwl6000g2a-firmware-18.168.6.1-79.el7.noarch                                                                                                                    177/241
  清理        : freetype-2.8-14.el7.x86_64                                                                                                                                      178/241
  清理        : xmlsec1-1.2.20-7.el7_4.x86_64                                                                                                                                   179/241
  清理        : device-mapper-persistent-data-0.8.5-3.el7.x86_64                                                                                                                180/241
  清理        : python-perf-3.10.0-1160.el7.x86_64                                                                                                                              181/241
  清理        : virt-what-1.18-4.el7.x86_64                                                                                                                                     182/241
  清理        : 32:bind-export-libs-9.11.4-26.P2.el7.x86_64                                                                                                                     183/241
  清理        : cronie-1.4.11-23.el7.x86_64                                                                                                                                     184/241
  清理        : cronie-anacron-1.4.11-23.el7.x86_64                                                                                                                             185/241
  清理        : libcroco-0.6.12-4.el7.x86_64                                                                                                                                    186/241
  清理        : libxml2-2.9.1-6.el7.5.x86_64                                                                                                                                    187/241
  清理        : 1:NetworkManager-team-1.18.8-1.el7.x86_64                                                                                                                       188/241
  清理        : 1:NetworkManager-1.18.8-1.el7.x86_64                                                                                                                            189/241
  清理        : 1:NetworkManager-libnm-1.18.8-1.el7.x86_64                                                                                                                      190/241
  清理        : polkit-0.112-26.el7.x86_64                                                                                                                                      191/241
  清理        : 1:wpa_supplicant-2.6-12.el7.x86_64                                                                                                                              192/241
  清理        : glib2-2.56.1-7.el7.x86_64                                                                                                                                       193/241
  清理        : iprutils-2.4.17.1-3.el7.x86_64                                                                                                                                  194/241
  清理        : 7:device-mapper-event-libs-1.02.170-6.el7.x86_64                                                                                                                195/241
  清理        : gzip-1.5-10.el7.x86_64                                                                                                                                          196/241
  清理        : kpartx-0.4.9-133.el7.x86_64                                                                                                                                     197/241
  清理        : systemd-sysv-219-78.el7.x86_64                                                                                                                                  198/241
  清理        : python-2.7.5-89.el7.x86_64                                                                                                                                      199/241
  清理        : python-libs-2.7.5-89.el7.x86_64                                                                                                                                 200/241
  清理        : 7:device-mapper-1.02.170-6.el7.x86_64                                                                                                                           201/241
  清理        : 7:device-mapper-libs-1.02.170-6.el7.x86_64                                                                                                                      202/241
  清理        : systemd-219-78.el7.x86_64                                                                                                                                       203/241
  清理        : curl-7.29.0-59.el7.x86_64                                                                                                                                       204/241
  清理        : libcurl-7.29.0-59.el7.x86_64                                                                                                                                    205/241
  清理        : openldap-2.4.44-22.el7.x86_64                                                                                                                                   206/241
  清理        : rpm-libs-4.11.3-45.el7.x86_64                                                                                                                                   207/241
  清理        : rpm-4.11.3-45.el7.x86_64                                                                                                                                        208/241
  清理        : util-linux-2.23.2-65.el7.x86_64                                                                                                                                 209/241
  清理        : nss-tools-3.44.0-7.el7_7.x86_64                                                                                                                                 210/241
  清理        : nss-sysinit-3.44.0-7.el7_7.x86_64                                                                                                                               211/241
  清理        : nss-3.44.0-7.el7_7.x86_64                                                                                                                                       212/241
  清理        : nss-pem-1.0.3-7.el7.x86_64                                                                                                                                      213/241
  清理        : nss-softokn-3.44.0-8.el7_7.x86_64                                                                                                                               214/241
  清理        : libmount-2.23.2-65.el7.x86_64                                                                                                                                   215/241
  清理        : libblkid-2.23.2-65.el7.x86_64                                                                                                                                   216/241
  清理        : libssh2-1.8.0-4.el7.x86_64                                                                                                                                      217/241
  清理        : systemd-libs-219-78.el7.x86_64                                                                                                                                  218/241
  清理        : cyrus-sasl-lib-2.1.26-23.el7.x86_64                                                                                                                             219/241
  清理        : krb5-libs-1.15.1-50.el7.x86_64                                                                                                                                  220/241
  清理        : coreutils-8.22-24.el7.x86_64                                                                                                                                    221/241
  清理        : 1:openssl-libs-1.0.2k-19.el7.x86_64                                                                                                                             222/241
  清理        : diffutils-3.3-5.el7.x86_64                                                                                                                                      223/241
  清理        : less-458-9.el7.x86_64                                                                                                                                           224/241
  清理        : ca-certificates-2020.2.41-70.0.el7_8.noarch                                                                                                                     225/241
  清理        : zlib-1.2.7-18.el7.x86_64                                                                                                                                        226/241
  清理        : xz-libs-5.2.2-1.el7.x86_64                                                                                                                                      227/241
  清理        : libuuid-2.23.2-65.el7.x86_64                                                                                                                                    228/241
  清理        : libsmartcols-2.23.2-65.el7.x86_64                                                                                                                               229/241
  清理        : expat-2.1.0-12.el7.x86_64                                                                                                                                       230/241
  清理        : 1:dmidecode-3.2-5.el7.x86_64                                                                                                                                    231/241
  清理        : kernel-tools-libs-3.10.0-1160.el7.x86_64                                                                                                                        232/241
  清理        : 2:vim-minimal-7.4.629-7.el7.x86_64                                                                                                                              233/241
  清理        : centos-release-7-9.2009.0.el7.centos.x86_64                                                                                                                     234/241
  清理        : glibc-common-2.17-317.el7.x86_64                                                                                                                                235/241
  清理        : bash-4.2.46-34.el7.x86_64                                                                                                                                       236/241
  清理        : nspr-4.21.0-1.el7.x86_64                                                                                                                                        237/241
  清理        : nss-util-3.44.0-4.el7_7.x86_64                                                                                                                                  238/241
  清理        : nss-softokn-freebl-3.44.0-8.el7_7.x86_64                                                                                                                        239/241
  清理        : glibc-2.17-317.el7.x86_64                                                                                                                                       240/241
  清理        : tzdata-2020a-1.el7.noarch                                                                                                                                       241/241
  验证中      : 7:device-mapper-event-1.02.170-6.el7_9.5.x86_64                                                                                                                   1/241
  验证中      : libblkid-2.23.2-65.el7_9.1.x86_64                                                                                                                                 2/241
  验证中      : libcurl-7.29.0-59.el7_9.2.x86_64                                                                                                                                  3/241
  验证中      : firewalld-filesystem-0.6.3-13.el7_9.noarch                                                                                                                        4/241
  验证中      : selinux-policy-3.13.1-268.el7_9.2.noarch                                                                                                                          5/241
  验证中      : selinux-policy-targeted-3.13.1-268.el7_9.2.noarch                                                                                                                 6/241
  验证中      : libsmartcols-2.23.2-65.el7_9.1.x86_64                                                                                                                             7/241
  验证中      : linux-firmware-20200421-83.git78c0348.el7_9.noarch                                                                                                                8/241
  验证中      : 1:NetworkManager-tui-1.18.8-2.el7_9.x86_64                                                                                                                        9/241
  验证中      : 7:lvm2-2.02.187-6.el7_9.5.x86_64                                                                                                                                 10/241
  验证中      : glibc-common-2.17-326.el7_9.3.x86_64                                                                                                                             11/241
  验证中      : openssh-7.4p1-23.el7_9.x86_64                                                                                                                                    12/241
  验证中      : sudo-1.8.23-10.el7_9.3.x86_64                                                                                                                                    13/241
  验证中      : kernel-tools-3.10.0-1160.119.1.el7.x86_64                                                                                                                        14/241
  验证中      : iwl6000g2a-firmware-18.168.6.1-83.el7_9.noarch                                                                                                                   15/241
  验证中      : xmlsec1-1.2.20-8.el7_9.x86_64                                                                                                                                    16/241
  验证中      : 1:dmidecode-3.2-5.el7_9.1.x86_64                                                                                                                                 17/241
  验证中      : kbd-1.15.5-16.el7_9.x86_64                                                                                                                                       18/241
  验证中      : 1:iwl1000-firmware-39.31.5.1-83.el7_9.noarch                                                                                                                     19/241
  验证中      : openldap-2.4.44-25.el7_9.x86_64                                                                                                                                  20/241
  验证中      : 1:grub2-pc-2.02-0.87.0.2.el7.centos.14.x86_64                                                                                                                    21/241
  验证中      : cronie-anacron-1.4.11-25.el7_9.x86_64                                                                                                                            22/241
  验证中      : 7:device-mapper-1.02.170-6.el7_9.5.x86_64                                                                                                                        23/241
  验证中      : iwl7260-firmware-25.30.13.0-83.el7_9.noarch                                                                                                                      24/241
  验证中      : freetype-2.8-14.el7_9.1.x86_64                                                                                                                                   25/241
  验证中      : cronie-1.4.11-25.el7_9.x86_64                                                                                                                                    26/241
  验证中      : libxml2-2.9.1-6.el7_9.6.x86_64                                                                                                                                   27/241
  验证中      : 1:grub2-pc-modules-2.02-0.87.0.2.el7.centos.14.noarch                                                                                                            28/241
  验证中      : 1:grub2-2.02-0.87.0.2.el7.centos.14.x86_64                                                                                                                       29/241
  验证中      : binutils-2.27-44.base.el7_9.1.x86_64                                                                                                                             30/241
  验证中      : 2:microcode_ctl-2.1-73.20.el7_9.x86_64                                                                                                                           31/241
  验证中      : zlib-1.2.7-21.el7_9.x86_64                                                                                                                                       32/241
  验证中      : iwl5000-firmware-8.83.5.1_1-83.el7_9.noarch                                                                                                                      33/241
  验证中      : tzdata-2024a-1.el7.noarch                                                                                                                                        34/241
  验证中      : libssh2-1.8.0-4.el7_9.1.x86_64                                                                                                                                   35/241
  验证中      : initscripts-9.49.53-1.el7_9.1.x86_64                                                                                                                             36/241
  验证中      : device-mapper-persistent-data-0.8.5-3.el7_9.2.x86_64                                                                                                             37/241
  验证中      : 7:device-mapper-libs-1.02.170-6.el7_9.5.x86_64                                                                                                                   38/241
  验证中      : 1:openssl-libs-1.0.2k-26.el7_9.x86_64                                                                                                                            39/241
  验证中      : 32:bind-export-libs-9.11.4-26.P2.el7_9.16.x86_64                                                                                                                 40/241
  验证中      : 12:dhclient-4.2.5-83.el7.centos.2.x86_64                                                                                                                         41/241
  验证中      : nss-pem-1.0.3-7.el7_9.1.x86_64                                                                                                                                   42/241
  验证中      : centos-release-7-9.2009.2.el7.centos.x86_64                                                                                                                      43/241
  验证中      : openssh-server-7.4p1-23.el7_9.x86_64                                                                                                                             44/241
  验证中      : python-perf-3.10.0-1160.119.1.el7.x86_64                                                                                                                         45/241
  验证中      : less-458-10.el7_9.x86_64                                                                                                                                         46/241
  验证中      : bash-4.2.46-35.el7_9.x86_64                                                                                                                                      47/241
  验证中      : python-2.7.5-94.el7_9.x86_64                                                                                                                                     48/241
  验证中      : iprutils-2.4.17.1-3.el7_7.x86_64                                                                                                                                 49/241
  验证中      : nss-tools-3.90.0-2.el7_9.x86_64                                                                                                                                  50/241
  验证中      : systemd-219-78.el7_9.9.x86_64                                                                                                                                    51/241
  验证中      : iwl100-firmware-39.31.5.1-83.el7_9.noarch                                                                                                                        52/241
  验证中      : 2:vim-minimal-7.4.629-8.el7_9.x86_64                                                                                                                             53/241
  验证中      : nss-sysinit-3.90.0-2.el7_9.x86_64                                                                                                                                54/241
  验证中      : kernel-tools-libs-3.10.0-1160.119.1.el7.x86_64                                                                                                                   55/241
  验证中      : 1:grub2-tools-minimal-2.02-0.87.0.2.el7.centos.14.x86_64                                                                                                         56/241
  验证中      : cyrus-sasl-lib-2.1.26-24.el7_9.x86_64                                                                                                                            57/241
  验证中      : iwl2000-firmware-18.168.6.1-83.el7_9.noarch                                                                                                                      58/241
  验证中      : nss-softokn-3.90.0-6.el7_9.x86_64                                                                                                                                59/241
  验证中      : 1:grub2-common-2.02-0.87.0.2.el7.centos.14.noarch                                                                                                                60/241
  验证中      : 12:dhcp-libs-4.2.5-83.el7.centos.2.x86_64                                                                                                                        61/241
  验证中      : 1:NetworkManager-team-1.18.8-2.el7_9.x86_64                                                                                                                      62/241
  验证中      : kernel-3.10.0-1160.119.1.el7.x86_64                                                                                                                              63/241
  验证中      : 12:dhcp-common-4.2.5-83.el7.centos.2.x86_64                                                                                                                      64/241
  验证中      : python-libs-2.7.5-94.el7_9.x86_64                                                                                                                                65/241
  验证中      : iwl3160-firmware-25.30.13.0-83.el7_9.noarch                                                                                                                      66/241
  验证中      : iwl6000-firmware-9.221.4.1-83.el7_9.noarch                                                                                                                       67/241
  验证中      : nss-softokn-freebl-3.90.0-6.el7_9.x86_64                                                                                                                         68/241
  验证中      : kbd-legacy-1.15.5-16.el7_9.noarch                                                                                                                                69/241
  验证中      : firewalld-0.6.3-13.el7_9.noarch                                                                                                                                  70/241
  验证中      : krb5-libs-1.15.1-55.el7_9.x86_64                                                                                                                                 71/241
  验证中      : kexec-tools-2.0.15-51.el7_9.3.x86_64                                                                                                                             72/241
  验证中      : coreutils-8.22-24.el7_9.2.x86_64                                                                                                                                 73/241
  验证中      : rpm-libs-4.11.3-48.el7_9.x86_64                                                                                                                                  74/241
  验证中      : 1:wpa_supplicant-2.6-12.el7_9.2.x86_64                                                                                                                           75/241
  验证中      : util-linux-2.23.2-65.el7_9.1.x86_64                                                                                                                              76/241
  验证中      : systemd-libs-219-78.el7_9.9.x86_64                                                                                                                               77/241
  验证中      : nss-util-3.90.0-1.el7_9.x86_64                                                                                                                                   78/241
  验证中      : ca-certificates-2023.2.60_v7.0.306-72.el7_9.noarch                                                                                                               79/241
  验证中      : libuuid-2.23.2-65.el7_9.1.x86_64                                                                                                                                 80/241
  验证中      : iwl5150-firmware-8.24.2.2-83.el7_9.noarch                                                                                                                        81/241
  验证中      : 1:grub2-tools-extra-2.02-0.87.0.2.el7.centos.14.x86_64                                                                                                           82/241
  验证中      : 1:openssl-1.0.2k-26.el7_9.x86_64                                                                                                                                 83/241
  验证中      : tuned-2.11.0-12.el7_9.noarch                                                                                                                                     84/241
  验证中      : iwl105-firmware-18.168.6.1-83.el7_9.noarch                                                                                                                       85/241
  验证中      : diffutils-3.3-6.el7_9.x86_64                                                                                                                                     86/241
  验证中      : nss-3.90.0-2.el7_9.x86_64                                                                                                                                        87/241
  验证中      : kpartx-0.4.9-136.el7_9.x86_64                                                                                                                                    88/241
  验证中      : virt-what-1.18-4.el7_9.1.x86_64                                                                                                                                  89/241
  验证中      : systemd-sysv-219-78.el7_9.9.x86_64                                                                                                                               90/241
  验证中      : iwl3945-firmware-15.32.2.9-83.el7_9.noarch                                                                                                                       91/241
  验证中      : rpm-4.11.3-48.el7_9.x86_64                                                                                                                                       92/241
  验证中      : libmount-2.23.2-65.el7_9.1.x86_64                                                                                                                                93/241
  验证中      : openssh-clients-7.4p1-23.el7_9.x86_64                                                                                                                            94/241
  验证中      : iwl2030-firmware-18.168.6.1-83.el7_9.noarch                                                                                                                      95/241
  验证中      : glib2-2.56.1-9.el7_9.x86_64                                                                                                                                      96/241
  验证中      : open-vm-tools-11.0.5-3.el7_9.9.x86_64                                                                                                                            97/241
  验证中      : xz-libs-5.2.2-2.el7_9.x86_64                                                                                                                                     98/241
  验证中      : kbd-misc-1.15.5-16.el7_9.noarch                                                                                                                                  99/241
  验证中      : iwl6000g2b-firmware-18.168.6.1-83.el7_9.noarch                                                                                                                  100/241
  验证中      : iwl135-firmware-18.168.6.1-83.el7_9.noarch                                                                                                                      101/241
  验证中      : curl-7.29.0-59.el7_9.2.x86_64                                                                                                                                   102/241
  验证中      : 1:NetworkManager-1.18.8-2.el7_9.x86_64                                                                                                                          103/241
  验证中      : expat-2.1.0-15.el7_9.x86_64                                                                                                                                     104/241
  验证中      : rsyslog-8.24.0-57.el7_9.3.x86_64                                                                                                                                105/241
  验证中      : 7:lvm2-libs-2.02.187-6.el7_9.5.x86_64                                                                                                                           106/241
  验证中      : xmlsec1-openssl-1.2.20-8.el7_9.x86_64                                                                                                                           107/241
  验证中      : 1:NetworkManager-libnm-1.18.8-2.el7_9.x86_64                                                                                                                    108/241
  验证中      : python-firewall-0.6.3-13.el7_9.noarch                                                                                                                           109/241
  验证中      : iwl4965-firmware-228.61.2.24-83.el7_9.noarch                                                                                                                    110/241
  验证中      : glibc-2.17-326.el7_9.3.x86_64                                                                                                                                   111/241
  验证中      : 1:grub2-tools-2.02-0.87.0.2.el7.centos.14.x86_64                                                                                                                112/241
  验证中      : 7:device-mapper-event-libs-1.02.170-6.el7_9.5.x86_64                                                                                                            113/241
  验证中      : gzip-1.5-11.el7_9.x86_64                                                                                                                                        114/241
  验证中      : libcroco-0.6.12-6.el7_9.x86_64                                                                                                                                  115/241
  验证中      : rpm-python-4.11.3-48.el7_9.x86_64                                                                                                                               116/241
  验证中      : nspr-4.35.0-1.el7_9.x86_64                                                                                                                                      117/241
  验证中      : xz-5.2.2-2.el7_9.x86_64                                                                                                                                         118/241
  验证中      : polkit-0.112-26.el7_9.1.x86_64                                                                                                                                  119/241
  验证中      : iwl6050-firmware-41.28.5.1-83.el7_9.noarch                                                                                                                      120/241
  验证中      : rpm-build-libs-4.11.3-48.el7_9.x86_64                                                                                                                           121/241
  验证中      : rpm-4.11.3-45.el7.x86_64                                                                                                                                        122/241
  验证中      : firewalld-filesystem-0.6.3-11.el7.noarch                                                                                                                        123/241
  验证中      : glibc-common-2.17-317.el7.x86_64                                                                                                                                124/241
  验证中      : selinux-policy-targeted-3.13.1-268.el7.noarch                                                                                                                   125/241
  验证中      : ca-certificates-2020.2.41-70.0.el7_8.noarch                                                                                                                     126/241
  验证中      : linux-firmware-20200421-79.git78c0348.el7.noarch                                                                                                                127/241
  验证中      : 7:device-mapper-event-1.02.170-6.el7.x86_64                                                                                                                     128/241
  验证中      : freetype-2.8-14.el7.x86_64                                                                                                                                      129/241
  验证中      : iwl2000-firmware-18.168.6.1-79.el7.noarch                                                                                                                       130/241
  验证中      : glib2-2.56.1-7.el7.x86_64                                                                                                                                       131/241
  验证中      : selinux-policy-3.13.1-268.el7.noarch                                                                                                                            132/241
  验证中      : 1:iwl1000-firmware-39.31.5.1-79.el7.noarch                                                                                                                      133/241
  验证中      : libssh2-1.8.0-4.el7.x86_64                                                                                                                                      134/241
  验证中      : virt-what-1.18-4.el7.x86_64                                                                                                                                     135/241
  验证中      : xmlsec1-openssl-1.2.20-7.el7_4.x86_64                                                                                                                           136/241
  验证中      : zlib-1.2.7-18.el7.x86_64                                                                                                                                        137/241
  验证中      : iwl5150-firmware-8.24.2.2-79.el7.noarch                                                                                                                         138/241
  验证中      : iwl6000g2a-firmware-18.168.6.1-79.el7.noarch                                                                                                                    139/241
  验证中      : nss-pem-1.0.3-7.el7.x86_64                                                                                                                                      140/241
  验证中      : systemd-219-78.el7.x86_64                                                                                                                                       141/241
  验证中      : 7:device-mapper-1.02.170-6.el7.x86_64                                                                                                                           142/241
  验证中      : iwl100-firmware-39.31.5.1-79.el7.noarch                                                                                                                         143/241
  验证中      : openssh-server-7.4p1-21.el7.x86_64                                                                                                                              144/241
  验证中      : binutils-2.27-44.base.el7.x86_64                                                                                                                                145/241
  验证中      : libblkid-2.23.2-65.el7.x86_64                                                                                                                                   146/241
  验证中      : 1:grub2-common-2.02-0.86.el7.centos.noarch                                                                                                                      147/241
  验证中      : rpm-libs-4.11.3-45.el7.x86_64                                                                                                                                   148/241
  验证中      : iwl6000g2b-firmware-18.168.6.1-79.el7.noarch                                                                                                                    149/241
  验证中      : 12:dhcp-libs-4.2.5-82.el7.centos.x86_64                                                                                                                         150/241
  验证中      : 1:grub2-tools-2.02-0.86.el7.centos.x86_64                                                                                                                       151/241
  验证中      : 1:openssl-libs-1.0.2k-19.el7.x86_64                                                                                                                             152/241
  验证中      : 1:NetworkManager-team-1.18.8-1.el7.x86_64                                                                                                                       153/241
  验证中      : kernel-tools-libs-3.10.0-1160.el7.x86_64                                                                                                                        154/241
  验证中      : iwl3160-firmware-25.30.13.0-79.el7.noarch                                                                                                                       155/241
  验证中      : iwl6000-firmware-9.221.4.1-79.el7.noarch                                                                                                                        156/241
  验证中      : sudo-1.8.23-10.el7.x86_64                                                                                                                                       157/241
  验证中      : 7:lvm2-2.02.187-6.el7.x86_64                                                                                                                                    158/241
  验证中      : nss-3.44.0-7.el7_7.x86_64                                                                                                                                       159/241
  验证中      : iwl3945-firmware-15.32.2.9-79.el7.noarch                                                                                                                        160/241
  验证中      : 1:NetworkManager-libnm-1.18.8-1.el7.x86_64                                                                                                                      161/241
  验证中      : libuuid-2.23.2-65.el7.x86_64                                                                                                                                    162/241
  验证中      : 2:vim-minimal-7.4.629-7.el7.x86_64                                                                                                                              163/241
  验证中      : nss-tools-3.44.0-7.el7_7.x86_64                                                                                                                                 164/241
  验证中      : 1:NetworkManager-tui-1.18.8-1.el7.x86_64                                                                                                                        165/241
  验证中      : 12:dhclient-4.2.5-82.el7.centos.x86_64                                                                                                                          166/241
  验证中      : 1:wpa_supplicant-2.6-12.el7.x86_64                                                                                                                              167/241
  验证中      : 2:microcode_ctl-2.1-73.el7.x86_64                                                                                                                               168/241
  验证中      : 1:grub2-2.02-0.86.el7.centos.x86_64                                                                                                                             169/241
  验证中      : kbd-misc-1.15.5-15.el7.noarch                                                                                                                                   170/241
  验证中      : 1:NetworkManager-1.18.8-1.el7.x86_64                                                                                                                            171/241
  验证中      : initscripts-9.49.53-1.el7.x86_64                                                                                                                                172/241
  验证中      : 32:bind-export-libs-9.11.4-26.P2.el7.x86_64                                                                                                                     173/241
  验证中      : rsyslog-8.24.0-55.el7.x86_64                                                                                                                                    174/241
  验证中      : nss-sysinit-3.44.0-7.el7_7.x86_64                                                                                                                               175/241
  验证中      : iwl6050-firmware-41.28.5.1-79.el7.noarch                                                                                                                        176/241
  验证中      : iwl135-firmware-18.168.6.1-79.el7.noarch                                                                                                                        177/241
  验证中      : openssh-clients-7.4p1-21.el7.x86_64                                                                                                                             178/241
  验证中      : 1:openssl-1.0.2k-19.el7.x86_64                                                                                                                                  179/241
  验证中      : 7:device-mapper-event-libs-1.02.170-6.el7.x86_64                                                                                                                180/241
  验证中      : rpm-python-4.11.3-45.el7.x86_64                                                                                                                                 181/241
  验证中      : tzdata-2020a-1.el7.noarch                                                                                                                                       182/241
  验证中      : 7:lvm2-libs-2.02.187-6.el7.x86_64                                                                                                                               183/241
  验证中      : curl-7.29.0-59.el7.x86_64                                                                                                                                       184/241
  验证中      : 1:grub2-pc-2.02-0.86.el7.centos.x86_64                                                                                                                          185/241
  验证中      : krb5-libs-1.15.1-50.el7.x86_64                                                                                                                                  186/241
  验证中      : cronie-anacron-1.4.11-23.el7.x86_64                                                                                                                             187/241
  验证中      : gzip-1.5-10.el7.x86_64                                                                                                                                          188/241
  验证中      : nspr-4.21.0-1.el7.x86_64                                                                                                                                        189/241
  验证中      : nss-softokn-freebl-3.44.0-8.el7_7.x86_64                                                                                                                        190/241
  验证中      : nss-softokn-3.44.0-8.el7_7.x86_64                                                                                                                               191/241
  验证中      : iwl5000-firmware-8.83.5.1_1-79.el7.noarch                                                                                                                       192/241
  验证中      : python-firewall-0.6.3-11.el7.noarch                                                                                                                             193/241
  验证中      : rpm-build-libs-4.11.3-45.el7.x86_64                                                                                                                             194/241
  验证中      : iwl4965-firmware-228.61.2.24-79.el7.noarch                                                                                                                      195/241
  验证中      : libxml2-2.9.1-6.el7.5.x86_64                                                                                                                                    196/241
  验证中      : libcroco-0.6.12-4.el7.x86_64                                                                                                                                    197/241
  验证中      : glibc-2.17-317.el7.x86_64                                                                                                                                       198/241
  验证中      : centos-release-7-9.2009.0.el7.centos.x86_64                                                                                                                     199/241
  验证中      : 1:dmidecode-3.2-5.el7.x86_64                                                                                                                                    200/241
  验证中      : iwl105-firmware-18.168.6.1-79.el7.noarch                                                                                                                        201/241
  验证中      : iwl7260-firmware-25.30.13.0-79.el7.noarch                                                                                                                       202/241
  验证中      : openldap-2.4.44-22.el7.x86_64                                                                                                                                   203/241
  验证中      : 1:grub2-pc-modules-2.02-0.86.el7.centos.noarch                                                                                                                  204/241
  验证中      : kbd-legacy-1.15.5-15.el7.noarch                                                                                                                                 205/241
  验证中      : tuned-2.11.0-9.el7.noarch                                                                                                                                       206/241
  验证中      : iwl2030-firmware-18.168.6.1-79.el7.noarch                                                                                                                       207/241
  验证中      : libcurl-7.29.0-59.el7.x86_64                                                                                                                                    208/241
  验证中      : kbd-1.15.5-15.el7.x86_64                                                                                                                                        209/241
  验证中      : firewalld-0.6.3-11.el7.noarch                                                                                                                                   210/241
  验证中      : python-perf-3.10.0-1160.el7.x86_64                                                                                                                              211/241
  验证中      : coreutils-8.22-24.el7.x86_64                                                                                                                                    212/241
  验证中      : cronie-1.4.11-23.el7.x86_64                                                                                                                                     213/241
  验证中      : xz-libs-5.2.2-1.el7.x86_64                                                                                                                                      214/241
  验证中      : python-2.7.5-89.el7.x86_64                                                                                                                                      215/241
  验证中      : polkit-0.112-26.el7.x86_64                                                                                                                                      216/241
  验证中      : iprutils-2.4.17.1-3.el7.x86_64                                                                                                                                  217/241
  验证中      : less-458-9.el7.x86_64                                                                                                                                           218/241
  验证中      : expat-2.1.0-12.el7.x86_64                                                                                                                                       219/241
  验证中      : open-vm-tools-11.0.5-3.el7.x86_64                                                                                                                               220/241
  验证中      : bash-4.2.46-34.el7.x86_64                                                                                                                                       221/241
  验证中      : openssh-7.4p1-21.el7.x86_64                                                                                                                                     222/241
  验证中      : diffutils-3.3-5.el7.x86_64                                                                                                                                      223/241
  验证中      : nss-util-3.44.0-4.el7_7.x86_64                                                                                                                                  224/241
  验证中      : 7:device-mapper-libs-1.02.170-6.el7.x86_64                                                                                                                      225/241
  验证中      : python-libs-2.7.5-89.el7.x86_64                                                                                                                                 226/241
  验证中      : xmlsec1-1.2.20-7.el7_4.x86_64                                                                                                                                   227/241
  验证中      : kernel-tools-3.10.0-1160.el7.x86_64                                                                                                                             228/241
  验证中      : xz-5.2.2-1.el7.x86_64                                                                                                                                           229/241
  验证中      : 12:dhcp-common-4.2.5-82.el7.centos.x86_64                                                                                                                       230/241
  验证中      : kexec-tools-2.0.15-51.el7.x86_64                                                                                                                                231/241
  验证中      : 1:grub2-tools-minimal-2.02-0.86.el7.centos.x86_64                                                                                                               232/241
  验证中      : libmount-2.23.2-65.el7.x86_64                                                                                                                                   233/241
  验证中      : systemd-sysv-219-78.el7.x86_64                                                                                                                                  234/241
  验证中      : 1:grub2-tools-extra-2.02-0.86.el7.centos.x86_64                                                                                                                 235/241
  验证中      : kpartx-0.4.9-133.el7.x86_64                                                                                                                                     236/241
  验证中      : systemd-libs-219-78.el7.x86_64                                                                                                                                  237/241
  验证中      : device-mapper-persistent-data-0.8.5-3.el7.x86_64                                                                                                                238/241
  验证中      : libsmartcols-2.23.2-65.el7.x86_64                                                                                                                               239/241
  验证中      : cyrus-sasl-lib-2.1.26-23.el7.x86_64                                                                                                                             240/241
  验证中      : util-linux-2.23.2-65.el7.x86_64                                                                                                                                 241/241

已安装:
  kernel.x86_64 0:3.10.0-1160.119.1.el7

更新完毕:
  NetworkManager.x86_64 1:1.18.8-2.el7_9                       NetworkManager-libnm.x86_64 1:1.18.8-2.el7_9                   NetworkManager-team.x86_64 1:1.18.8-2.el7_9
  NetworkManager-tui.x86_64 1:1.18.8-2.el7_9                   bash.x86_64 0:4.2.46-35.el7_9                                  bind-export-libs.x86_64 32:9.11.4-26.P2.el7_9.16
  binutils.x86_64 0:2.27-44.base.el7_9.1                       ca-certificates.noarch 0:2023.2.60_v7.0.306-72.el7_9           centos-release.x86_64 0:7-9.2009.2.el7.centos
  coreutils.x86_64 0:8.22-24.el7_9.2                           cronie.x86_64 0:1.4.11-25.el7_9                                cronie-anacron.x86_64 0:1.4.11-25.el7_9
  curl.x86_64 0:7.29.0-59.el7_9.2                              cyrus-sasl-lib.x86_64 0:2.1.26-24.el7_9                        device-mapper.x86_64 7:1.02.170-6.el7_9.5
  device-mapper-event.x86_64 7:1.02.170-6.el7_9.5              device-mapper-event-libs.x86_64 7:1.02.170-6.el7_9.5           device-mapper-libs.x86_64 7:1.02.170-6.el7_9.5
  device-mapper-persistent-data.x86_64 0:0.8.5-3.el7_9.2       dhclient.x86_64 12:4.2.5-83.el7.centos.2                       dhcp-common.x86_64 12:4.2.5-83.el7.centos.2
  dhcp-libs.x86_64 12:4.2.5-83.el7.centos.2                    diffutils.x86_64 0:3.3-6.el7_9                                 dmidecode.x86_64 1:3.2-5.el7_9.1
  expat.x86_64 0:2.1.0-15.el7_9                                firewalld.noarch 0:0.6.3-13.el7_9                              firewalld-filesystem.noarch 0:0.6.3-13.el7_9
  freetype.x86_64 0:2.8-14.el7_9.1                             glib2.x86_64 0:2.56.1-9.el7_9                                  glibc.x86_64 0:2.17-326.el7_9.3
  glibc-common.x86_64 0:2.17-326.el7_9.3                       grub2.x86_64 1:2.02-0.87.0.2.el7.centos.14                     grub2-common.noarch 1:2.02-0.87.0.2.el7.centos.14
  grub2-pc.x86_64 1:2.02-0.87.0.2.el7.centos.14                grub2-pc-modules.noarch 1:2.02-0.87.0.2.el7.centos.14          grub2-tools.x86_64 1:2.02-0.87.0.2.el7.centos.14
  grub2-tools-extra.x86_64 1:2.02-0.87.0.2.el7.centos.14       grub2-tools-minimal.x86_64 1:2.02-0.87.0.2.el7.centos.14       gzip.x86_64 0:1.5-11.el7_9
  initscripts.x86_64 0:9.49.53-1.el7_9.1                       iprutils.x86_64 0:2.4.17.1-3.el7_7                             iwl100-firmware.noarch 0:39.31.5.1-83.el7_9
  iwl1000-firmware.noarch 1:39.31.5.1-83.el7_9                 iwl105-firmware.noarch 0:18.168.6.1-83.el7_9                   iwl135-firmware.noarch 0:18.168.6.1-83.el7_9
  iwl2000-firmware.noarch 0:18.168.6.1-83.el7_9                iwl2030-firmware.noarch 0:18.168.6.1-83.el7_9                  iwl3160-firmware.noarch 0:25.30.13.0-83.el7_9
  iwl3945-firmware.noarch 0:15.32.2.9-83.el7_9                 iwl4965-firmware.noarch 0:228.61.2.24-83.el7_9                 iwl5000-firmware.noarch 0:8.83.5.1_1-83.el7_9
  iwl5150-firmware.noarch 0:8.24.2.2-83.el7_9                  iwl6000-firmware.noarch 0:9.221.4.1-83.el7_9                   iwl6000g2a-firmware.noarch 0:18.168.6.1-83.el7_9
  iwl6000g2b-firmware.noarch 0:18.168.6.1-83.el7_9             iwl6050-firmware.noarch 0:41.28.5.1-83.el7_9                   iwl7260-firmware.noarch 0:25.30.13.0-83.el7_9
  kbd.x86_64 0:1.15.5-16.el7_9                                 kbd-legacy.noarch 0:1.15.5-16.el7_9                            kbd-misc.noarch 0:1.15.5-16.el7_9
  kernel-tools.x86_64 0:3.10.0-1160.119.1.el7                  kernel-tools-libs.x86_64 0:3.10.0-1160.119.1.el7               kexec-tools.x86_64 0:2.0.15-51.el7_9.3
  kpartx.x86_64 0:0.4.9-136.el7_9                              krb5-libs.x86_64 0:1.15.1-55.el7_9                             less.x86_64 0:458-10.el7_9
  libblkid.x86_64 0:2.23.2-65.el7_9.1                          libcroco.x86_64 0:0.6.12-6.el7_9                               libcurl.x86_64 0:7.29.0-59.el7_9.2
  libmount.x86_64 0:2.23.2-65.el7_9.1                          libsmartcols.x86_64 0:2.23.2-65.el7_9.1                        libssh2.x86_64 0:1.8.0-4.el7_9.1
  libuuid.x86_64 0:2.23.2-65.el7_9.1                           libxml2.x86_64 0:2.9.1-6.el7_9.6                               linux-firmware.noarch 0:20200421-83.git78c0348.el7_9
  lvm2.x86_64 7:2.02.187-6.el7_9.5                             lvm2-libs.x86_64 7:2.02.187-6.el7_9.5                          microcode_ctl.x86_64 2:2.1-73.20.el7_9
  nspr.x86_64 0:4.35.0-1.el7_9                                 nss.x86_64 0:3.90.0-2.el7_9                                    nss-pem.x86_64 0:1.0.3-7.el7_9.1
  nss-softokn.x86_64 0:3.90.0-6.el7_9                          nss-softokn-freebl.x86_64 0:3.90.0-6.el7_9                     nss-sysinit.x86_64 0:3.90.0-2.el7_9
  nss-tools.x86_64 0:3.90.0-2.el7_9                            nss-util.x86_64 0:3.90.0-1.el7_9                               open-vm-tools.x86_64 0:11.0.5-3.el7_9.9
  openldap.x86_64 0:2.4.44-25.el7_9                            openssh.x86_64 0:7.4p1-23.el7_9                                openssh-clients.x86_64 0:7.4p1-23.el7_9
  openssh-server.x86_64 0:7.4p1-23.el7_9                       openssl.x86_64 1:1.0.2k-26.el7_9                               openssl-libs.x86_64 1:1.0.2k-26.el7_9
  polkit.x86_64 0:0.112-26.el7_9.1                             python.x86_64 0:2.7.5-94.el7_9                                 python-firewall.noarch 0:0.6.3-13.el7_9
  python-libs.x86_64 0:2.7.5-94.el7_9                          python-perf.x86_64 0:3.10.0-1160.119.1.el7                     rpm.x86_64 0:4.11.3-48.el7_9
  rpm-build-libs.x86_64 0:4.11.3-48.el7_9                      rpm-libs.x86_64 0:4.11.3-48.el7_9                              rpm-python.x86_64 0:4.11.3-48.el7_9
  rsyslog.x86_64 0:8.24.0-57.el7_9.3                           selinux-policy.noarch 0:3.13.1-268.el7_9.2                     selinux-policy-targeted.noarch 0:3.13.1-268.el7_9.2
  sudo.x86_64 0:1.8.23-10.el7_9.3                              systemd.x86_64 0:219-78.el7_9.9                                systemd-libs.x86_64 0:219-78.el7_9.9
  systemd-sysv.x86_64 0:219-78.el7_9.9                         tuned.noarch 0:2.11.0-12.el7_9                                 tzdata.noarch 0:2024a-1.el7
  util-linux.x86_64 0:2.23.2-65.el7_9.1                        vim-minimal.x86_64 2:7.4.629-8.el7_9                           virt-what.x86_64 0:1.18-4.el7_9.1
  wpa_supplicant.x86_64 1:2.6-12.el7_9.2                       xmlsec1.x86_64 0:1.2.20-8.el7_9                                xmlsec1-openssl.x86_64 0:1.2.20-8.el7_9
  xz.x86_64 0:5.2.2-2.el7_9                                    xz-libs.x86_64 0:5.2.2-2.el7_9                                 zlib.x86_64 0:1.2.7-21.el7_9

完毕!

更新内容:

安装1个新软件包:kernel-3.10.0-1160.119.1.el7

升级120个软件包

总下载量:267 MB

更新耗时:约10分钟

三、Docker安装与配置
3.1 安装依赖工具
sh 复制代码
[root@localhost ~]# sudo yum install -y yum-utils device-mapper-persistent-data lvm2
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
软件包 device-mapper-persistent-data-0.8.5-3.el7_9.2.x86_64 已安装并且是最新版本
软件包 7:lvm2-2.02.187-6.el7_9.5.x86_64 已安装并且是最新版本
正在解决依赖关系
--> 正在检查事务
---> 软件包 yum-utils.noarch.0.1.1.31-54.el7_8 将被 安装
--> 正在处理依赖关系 python-kitchen,它被软件包 yum-utils-1.1.31-54.el7_8.noarch 需要
--> 正在处理依赖关系 libxml2-python,它被软件包 yum-utils-1.1.31-54.el7_8.noarch 需要
--> 正在检查事务
---> 软件包 libxml2-python.x86_64.0.2.9.1-6.el7_9.6 将被 安装
---> 软件包 python-kitchen.noarch.0.1.1.1-5.el7 将被 安装
--> 正在处理依赖关系 python-chardet,它被软件包 python-kitchen-1.1.1-5.el7.noarch 需要
--> 正在检查事务
---> 软件包 python-chardet.noarch.0.2.2.1-3.el7 将被 安装
--> 解决依赖关系完成

依赖关系解决

========================================================================================================================================================================================
 Package                                        架构                                   版本                                               源                                       大小
========================================================================================================================================================================================
正在安装:
 yum-utils                                      noarch                                 1.1.31-54.el7_8                                    base                                    122 k
为依赖而安装:
 libxml2-python                                 x86_64                                 2.9.1-6.el7_9.6                                    updates                                 247 k
 python-chardet                                 noarch                                 2.2.1-3.el7                                        base                                    227 k
 python-kitchen                                 noarch                                 1.1.1-5.el7                                        base                                    267 k

事务概要
========================================================================================================================================================================================
安装  1 软件包 (+3 依赖软件包)

总下载量:863 k
安装大小:4.3 M
Downloading packages:
(1/4): python-chardet-2.2.1-3.el7.noarch.rpm                                                                                                                     | 227 kB  00:00:00
(2/4): libxml2-python-2.9.1-6.el7_9.6.x86_64.rpm                                                                                                                 | 247 kB  00:00:01
(3/4): yum-utils-1.1.31-54.el7_8.noarch.rpm                                                                                                                      | 122 kB  00:00:00
(4/4): python-kitchen-1.1.1-5.el7.noarch.rpm                                                                                                                     | 267 kB  00:00:02
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                                                                    339 kB/s | 863 kB  00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : python-chardet-2.2.1-3.el7.noarch                                                                                                                                   1/4
  正在安装    : python-kitchen-1.1.1-5.el7.noarch                                                                                                                                   2/4
  正在安装    : libxml2-python-2.9.1-6.el7_9.6.x86_64                                                                                                                               3/4
  正在安装    : yum-utils-1.1.31-54.el7_8.noarch                                                                                                                                    4/4
  验证中      : python-kitchen-1.1.1-5.el7.noarch                                                                                                                                   1/4
  验证中      : yum-utils-1.1.31-54.el7_8.noarch                                                                                                                                    2/4
  验证中      : libxml2-python-2.9.1-6.el7_9.6.x86_64                                                                                                                               3/4
  验证中      : python-chardet-2.2.1-3.el7.noarch                                                                                                                                   4/4

已安装:
  yum-utils.noarch 0:1.1.31-54.el7_8

作为依赖被安装:
  libxml2-python.x86_64 0:2.9.1-6.el7_9.6                        python-chardet.noarch 0:2.2.1-3.el7                        python-kitchen.noarch 0:1.1.1-5.el7

完毕!

安装成功,包含:

  • yum-utils-1.1.31-54.el7_8.noarch
  • 依赖包:libxml2-python、python-chardet、python-kitchen
3.2 添加Docker CE仓库
sh 复制代码
[root@localhost ~]# sudo yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
已加载插件:fastestmirror
adding repo from: https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
grabbing file https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
repo saved to /etc/yum.repos.d/docker-ce.repo

成功添加阿里云Docker CE镜像源。

3.3 查看可用版本
sh 复制代码
[root@localhost ~]# sudo yum list docker-ce --showduplicates | grep 20.10
docker-ce.x86_64            3:20.10.0-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.1-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.2-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.3-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.4-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.5-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.6-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.7-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.8-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.9-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.10-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.11-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.12-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.13-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.14-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.15-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.16-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.17-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.18-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.19-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.20-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.21-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.22-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.23-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.24-3.el7                    docker-ce-stable

显示20.10.x系列所有可用版本。

3.4 安装Docker 20.10.24
sh 复制代码
[root@localhost ~]# sudo yum install -y docker-ce-20.10.24 docker-ce-cli-20.10.24 containerd.io
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 containerd.io.x86_64.0.1.6.33-3.1.el7 将被 安装
--> 正在处理依赖关系 container-selinux >= 2:2.74,它被软件包 containerd.io-1.6.33-3.1.el7.x86_64 需要
---> 软件包 docker-ce.x86_64.3.20.10.24-3.el7 将被 安装
--> 正在处理依赖关系 docker-ce-rootless-extras,它被软件包 3:docker-ce-20.10.24-3.el7.x86_64 需要
--> 正在处理依赖关系 libcgroup,它被软件包 3:docker-ce-20.10.24-3.el7.x86_64 需要
---> 软件包 docker-ce-cli.x86_64.1.20.10.24-3.el7 将被 安装
--> 正在检查事务
---> 软件包 container-selinux.noarch.2.2.119.2-1.911c772.el7_8 将被 安装
--> 正在处理依赖关系 policycoreutils-python,它被软件包 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 需要
---> 软件包 docker-ce-rootless-extras.x86_64.0.26.1.4-1.el7 将被 安装
--> 正在处理依赖关系 fuse-overlayfs >= 0.7,它被软件包 docker-ce-rootless-extras-26.1.4-1.el7.x86_64 需要
--> 正在处理依赖关系 slirp4netns >= 0.4,它被软件包 docker-ce-rootless-extras-26.1.4-1.el7.x86_64 需要
---> 软件包 libcgroup.x86_64.0.0.41-21.el7 将被 安装
--> 正在检查事务
---> 软件包 fuse-overlayfs.x86_64.0.0.7.2-6.el7_8 将被 安装
--> 正在处理依赖关系 libfuse3.so.3(FUSE_3.2)(64bit),它被软件包 fuse-overlayfs-0.7.2-6.el7_8.x86_64 需要
--> 正在处理依赖关系 libfuse3.so.3(FUSE_3.0)(64bit),它被软件包 fuse-overlayfs-0.7.2-6.el7_8.x86_64 需要
--> 正在处理依赖关系 libfuse3.so.3()(64bit),它被软件包 fuse-overlayfs-0.7.2-6.el7_8.x86_64 需要
---> 软件包 policycoreutils-python.x86_64.0.2.5-34.el7 将被 安装
--> 正在处理依赖关系 setools-libs >= 3.3.8-4,它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 libsemanage-python >= 2.5-14,它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 audit-libs-python >= 2.1.3-4,它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 python-IPy,它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 libqpol.so.1(VERS_1.4)(64bit),它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 libqpol.so.1(VERS_1.2)(64bit),它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 libapol.so.4(VERS_4.0)(64bit),它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 checkpolicy,它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 libqpol.so.1()(64bit),它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 libapol.so.4()(64bit),它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
---> 软件包 slirp4netns.x86_64.0.0.4.3-4.el7_8 将被 安装
--> 正在检查事务
---> 软件包 audit-libs-python.x86_64.0.2.8.5-4.el7 将被 安装
---> 软件包 checkpolicy.x86_64.0.2.5-8.el7 将被 安装
---> 软件包 fuse3-libs.x86_64.0.3.6.1-4.el7 将被 安装
---> 软件包 libsemanage-python.x86_64.0.2.5-14.el7 将被 安装
---> 软件包 python-IPy.noarch.0.0.75-6.el7 将被 安装
---> 软件包 setools-libs.x86_64.0.3.3.8-4.el7 将被 安装
--> 解决依赖关系完成

依赖关系解决

========================================================================================================================================================================================
 Package                                            架构                            版本                                                源                                         大小
========================================================================================================================================================================================
正在安装:
 containerd.io                                      x86_64                          1.6.33-3.1.el7                                      docker-ce-stable                           35 M
 docker-ce                                          x86_64                          3:20.10.24-3.el7                                    docker-ce-stable                           22 M
 docker-ce-cli                                      x86_64                          1:20.10.24-3.el7                                    docker-ce-stable                           30 M
为依赖而安装:
 audit-libs-python                                  x86_64                          2.8.5-4.el7                                         base                                       76 k
 checkpolicy                                        x86_64                          2.5-8.el7                                           base                                      295 k
 container-selinux                                  noarch                          2:2.119.2-1.911c772.el7_8                           extras                                     40 k
 docker-ce-rootless-extras                          x86_64                          26.1.4-1.el7                                        docker-ce-stable                          9.4 M
 fuse-overlayfs                                     x86_64                          0.7.2-6.el7_8                                       extras                                     54 k
 fuse3-libs                                         x86_64                          3.6.1-4.el7                                         extras                                     82 k
 libcgroup                                          x86_64                          0.41-21.el7                                         base                                       66 k
 libsemanage-python                                 x86_64                          2.5-14.el7                                          base                                      113 k
 policycoreutils-python                             x86_64                          2.5-34.el7                                          base                                      457 k
 python-IPy                                         noarch                          0.75-6.el7                                          base                                       32 k
 setools-libs                                       x86_64                          3.3.8-4.el7                                         base                                      620 k
 slirp4netns                                        x86_64                          0.4.3-4.el7_8                                       extras                                     81 k

事务概要
========================================================================================================================================================================================
安装  3 软件包 (+12 依赖软件包)

总下载量:99 M
安装大小:360 M
Downloading packages:
(1/15): audit-libs-python-2.8.5-4.el7.x86_64.rpm                                                                                                                 |  76 kB  00:00:00
(2/15): checkpolicy-2.5-8.el7.x86_64.rpm                                                                                                                         | 295 kB  00:00:01
(3/15): container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm                                                                                                     |  40 kB  00:00:01
warning: /var/cache/yum/x86_64/7/docker-ce-stable/packages/docker-ce-20.10.24-3.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY] 337 kB/s |  43 MB  00:02:51 ETA
docker-ce-20.10.24-3.el7.x86_64.rpm 的公钥尚未安装
(4/15): docker-ce-20.10.24-3.el7.x86_64.rpm                                                                                                                      |  22 MB  00:00:59
(5/15): containerd.io-1.6.33-3.1.el7.x86_64.rpm                                                                                                                  |  35 MB  00:01:34
(6/15): fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm                                                                                                                  |  54 kB  00:00:02
(7/15): fuse3-libs-3.6.1-4.el7.x86_64.rpm                                                                                                                        |  82 kB  00:00:02
(8/15): libsemanage-python-2.5-14.el7.x86_64.rpm                                                                                                                 | 113 kB  00:00:00
(9/15): libcgroup-0.41-21.el7.x86_64.rpm                                                                                                                         |  66 kB  00:00:02
(10/15): python-IPy-0.75-6.el7.noarch.rpm                                                                                                                        |  32 kB  00:00:00
(11/15): policycoreutils-python-2.5-34.el7.x86_64.rpm                                                                                                            | 457 kB  00:00:01
(12/15): slirp4netns-0.4.3-4.el7_8.x86_64.rpm                                                                                                                    |  81 kB  00:00:02
(13/15): setools-libs-3.3.8-4.el7.x86_64.rpm                                                                                                                     | 620 kB  00:00:03
(14/15): docker-ce-rootless-extras-26.1.4-1.el7.x86_64.rpm                                                                                                       | 9.4 MB  00:00:11
(15/15): docker-ce-cli-20.10.24-3.el7.x86_64.rpm                                                                                                                 |  30 MB  00:00:54
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                                                                    890 kB/s |  99 MB  00:01:53
从 https://mirrors.aliyun.com/docker-ce/linux/centos/gpg 检索密钥
导入 GPG key 0x621E9F35:
 用户ID     : "Docker Release (CE rpm) <docker@docker.com>"
 指纹       : 060a 61c5 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35
 来自       : https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : libcgroup-0.41-21.el7.x86_64                                                                                                                                       1/15
  正在安装    : slirp4netns-0.4.3-4.el7_8.x86_64                                                                                                                                   2/15
  正在安装    : setools-libs-3.3.8-4.el7.x86_64                                                                                                                                    3/15
  正在安装    : audit-libs-python-2.8.5-4.el7.x86_64                                                                                                                               4/15
  正在安装    : 1:docker-ce-cli-20.10.24-3.el7.x86_64                                                                                                                              5/15
  正在安装    : libsemanage-python-2.5-14.el7.x86_64                                                                                                                               6/15
  正在安装    : python-IPy-0.75-6.el7.noarch                                                                                                                                       7/15
  正在安装    : fuse3-libs-3.6.1-4.el7.x86_64                                                                                                                                      8/15
  正在安装    : fuse-overlayfs-0.7.2-6.el7_8.x86_64                                                                                                                                9/15
  正在安装    : checkpolicy-2.5-8.el7.x86_64                                                                                                                                      10/15
  正在安装    : policycoreutils-python-2.5-34.el7.x86_64                                                                                                                          11/15
  正在安装    : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch                                                                                                                12/15
  正在安装    : containerd.io-1.6.33-3.1.el7.x86_64                                                                                                                               13/15
  正在安装    : docker-ce-rootless-extras-26.1.4-1.el7.x86_64                                                                                                                     14/15
  正在安装    : 3:docker-ce-20.10.24-3.el7.x86_64                                                                                                                                 15/15
  验证中      : checkpolicy-2.5-8.el7.x86_64                                                                                                                                       1/15
  验证中      : fuse3-libs-3.6.1-4.el7.x86_64                                                                                                                                      2/15
  验证中      : python-IPy-0.75-6.el7.noarch                                                                                                                                       3/15
  验证中      : fuse-overlayfs-0.7.2-6.el7_8.x86_64                                                                                                                                4/15
  验证中      : libsemanage-python-2.5-14.el7.x86_64                                                                                                                               5/15
  验证中      : 1:docker-ce-cli-20.10.24-3.el7.x86_64                                                                                                                              6/15
  验证中      : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch                                                                                                                 7/15
  验证中      : containerd.io-1.6.33-3.1.el7.x86_64                                                                                                                                8/15
  验证中      : 3:docker-ce-20.10.24-3.el7.x86_64                                                                                                                                  9/15
  验证中      : policycoreutils-python-2.5-34.el7.x86_64                                                                                                                          10/15
  验证中      : docker-ce-rootless-extras-26.1.4-1.el7.x86_64                                                                                                                     11/15
  验证中      : audit-libs-python-2.8.5-4.el7.x86_64                                                                                                                              12/15
  验证中      : setools-libs-3.3.8-4.el7.x86_64                                                                                                                                   13/15
  验证中      : slirp4netns-0.4.3-4.el7_8.x86_64                                                                                                                                  14/15
  验证中      : libcgroup-0.41-21.el7.x86_64                                                                                                                                      15/15

已安装:
  containerd.io.x86_64 0:1.6.33-3.1.el7                         docker-ce.x86_64 3:20.10.24-3.el7                         docker-ce-cli.x86_64 1:20.10.24-3.el7

作为依赖被安装:
  audit-libs-python.x86_64 0:2.8.5-4.el7       checkpolicy.x86_64 0:2.5-8.el7    container-selinux.noarch 2:2.119.2-1.911c772.el7_8   docker-ce-rootless-extras.x86_64 0:26.1.4-1.el7
  fuse-overlayfs.x86_64 0:0.7.2-6.el7_8        fuse3-libs.x86_64 0:3.6.1-4.el7   libcgroup.x86_64 0:0.41-21.el7                       libsemanage-python.x86_64 0:2.5-14.el7
  policycoreutils-python.x86_64 0:2.5-34.el7   python-IPy.noarch 0:0.75-6.el7    setools-libs.x86_64 0:3.3.8-4.el7                    slirp4netns.x86_64 0:0.4.3-4.el7_8

完毕!

安装详情:

  • 主程序包:3个
  • 依赖包:12个
  • 总下载量:99 MB
  • 安装大小:360 MB
  • 耗时:约2分钟
3.5 Docker配置优化

3.5.1 创建配置目录

sh 复制代码
[root@localhost ~]# sudo mkdir -p /etc/docker

3.5.2 配置cgroup驱动和镜像加速

sh 复制代码
[root@localhost ~]# sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "exec-opts": ["native.cgroupdriver=systemd"],
  "registry-mirrors": ["https://docker.1ms.run","https://docker-0.unsee.tech"]
}
EOF

关键配置说明:

  • native.cgroupdriver=systemd:确保与Kubernetes兼容
  • registry-mirrors:配置镜像加速器
3.6 启动Docker服务
sh 复制代码
[root@localhost ~]# sudo systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[root@localhost ~]# sudo systemctl start docker

成功创建systemd服务链接并启动服务。

3.7 验证安装
sh 复制代码
[root@localhost ~]# docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

[root@localhost ~]# docker version --format '{{.Server.Version}}'
20.10.24

显示空容器列表,服务运行正常。

3.8 测试容器运行
sh 复制代码
[root@localhost ~]# docker run --rm hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
17eec7bbc9d7: Pull complete
Digest: sha256:d4aaab6242e0cace87e2ec17a2ed3d779d18fbfd03042ea58f2995626396a274
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/
四、Kubernetes环境预配置
4.1 重新加载Docker配置
sh 复制代码
[root@localhost ~]# sudo systemctl daemon-reload && sudo systemctl restart docker
4.2 关闭Swap分区
sh 复制代码
[root@localhost ~]# sudo swapoff -a
4.3 禁用SELinux

临时禁用:

sh 复制代码
[root@localhost ~]# sudo setenforce 0

永久禁用(修改配置文件):

sh 复制代码
[root@localhost ~]# sudo sed -i 's/^SELINUX=enforcing$/SELINUX=disabled/' /etc/selinux/config
4.4 配置内核模块

加载br_netfilter模块:

sh 复制代码
[root@localhost ~]# cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf
br_netfilter
EOF
4.5 配置网络转发规则
sh 复制代码
[root@localhost ~]# cat <<EOF | sudo tee /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
EOF

应用配置:

sh 复制代码
[root@localhost ~]# sudo sysctl --system
* Applying /usr/lib/sysctl.d/00-system.conf ...
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
* Applying /usr/lib/sysctl.d/10-default-yama-scope.conf ...
kernel.yama.ptrace_scope = 0
* Applying /usr/lib/sysctl.d/50-default.conf ...
kernel.sysrq = 16
kernel.core_uses_pid = 1
kernel.kptr_restrict = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.promote_secondaries = 1
net.ipv4.conf.all.promote_secondaries = 1
fs.protected_hardlinks = 1
fs.protected_symlinks = 1
* Applying /etc/sysctl.d/99-sysctl.conf ...
* Applying /etc/sysctl.d/k8s.conf ...
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
* Applying /etc/sysctl.conf ...

输出显示配置已成功应用。

4.6 添加Kubernetes仓库
sh 复制代码
[root@localhost ~]# cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/
enabled=1
gpgcheck=0
repo_gpgcheck=0
gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
EOF
4.7 安装Kubernetes组件
sh 复制代码
[root@localhost ~]# sudo yum install -y kubeadm-1.22* kubelet-1.22* kubectl-1.22*
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 kubeadm.x86_64.0.1.22.17-0 将被 安装
--> 正在处理依赖关系 kubernetes-cni >= 0.8.6,它被软件包 kubeadm-1.22.17-0.x86_64 需要
--> 正在处理依赖关系 cri-tools >= 1.19.0,它被软件包 kubeadm-1.22.17-0.x86_64 需要
---> 软件包 kubectl.x86_64.0.1.22.17-0 将被 安装
---> 软件包 kubelet.x86_64.0.1.22.17-0 将被 安装
--> 正在处理依赖关系 socat,它被软件包 kubelet-1.22.17-0.x86_64 需要
--> 正在处理依赖关系 conntrack,它被软件包 kubelet-1.22.17-0.x86_64 需要
--> 正在检查事务
---> 软件包 conntrack-tools.x86_64.0.1.4.4-7.el7 将被 安装
--> 正在处理依赖关系 libnetfilter_cttimeout.so.1(LIBNETFILTER_CTTIMEOUT_1.1)(64bit),它被软件包 conntrack-tools-1.4.4-7.el7.x86_64 需要
--> 正在处理依赖关系 libnetfilter_cttimeout.so.1(LIBNETFILTER_CTTIMEOUT_1.0)(64bit),它被软件包 conntrack-tools-1.4.4-7.el7.x86_64 需要
--> 正在处理依赖关系 libnetfilter_cthelper.so.0(LIBNETFILTER_CTHELPER_1.0)(64bit),它被软件包 conntrack-tools-1.4.4-7.el7.x86_64 需要
--> 正在处理依赖关系 libnetfilter_queue.so.1()(64bit),它被软件包 conntrack-tools-1.4.4-7.el7.x86_64 需要
--> 正在处理依赖关系 libnetfilter_cttimeout.so.1()(64bit),它被软件包 conntrack-tools-1.4.4-7.el7.x86_64 需要
--> 正在处理依赖关系 libnetfilter_cthelper.so.0()(64bit),它被软件包 conntrack-tools-1.4.4-7.el7.x86_64 需要
---> 软件包 cri-tools.x86_64.0.1.26.0-0 将被 安装
---> 软件包 kubernetes-cni.x86_64.0.1.2.0-0 将被 安装
---> 软件包 socat.x86_64.0.1.7.3.2-2.el7 将被 安装
--> 正在检查事务
---> 软件包 libnetfilter_cthelper.x86_64.0.1.0.0-11.el7 将被 安装
---> 软件包 libnetfilter_cttimeout.x86_64.0.1.0.0-7.el7 将被 安装
---> 软件包 libnetfilter_queue.x86_64.0.1.0.2-2.el7_2 将被 安装
--> 解决依赖关系完成

依赖关系解决

========================================================================================================================================================================================
 Package                                              架构                                 版本                                          源                                        大小
========================================================================================================================================================================================
正在安装:
 kubeadm                                              x86_64                               1.22.17-0                                     kubernetes                               9.3 M
 kubectl                                              x86_64                               1.22.17-0                                     kubernetes                               9.7 M
 kubelet                                              x86_64                               1.22.17-0                                     kubernetes                                20 M
为依赖而安装:
 conntrack-tools                                      x86_64                               1.4.4-7.el7                                   base                                     187 k
 cri-tools                                            x86_64                               1.26.0-0                                      kubernetes                               8.6 M
 kubernetes-cni                                       x86_64                               1.2.0-0                                       kubernetes                                17 M
 libnetfilter_cthelper                                x86_64                               1.0.0-11.el7                                  base                                      18 k
 libnetfilter_cttimeout                               x86_64                               1.0.0-7.el7                                   base                                      18 k
 libnetfilter_queue                                   x86_64                               1.0.2-2.el7_2                                 base                                      23 k
 socat                                                x86_64                               1.7.3.2-2.el7                                 base                                     290 k

事务概要
========================================================================================================================================================================================
安装  3 软件包 (+7 依赖软件包)

总下载量:65 M
安装大小:294 M
Downloading packages:
(1/10): conntrack-tools-1.4.4-7.el7.x86_64.rpm                                                                                                                   | 187 kB  00:00:00
(2/10): 8c09e88292176956bbc5153ff29e5a01be398b984c73f63c519f8ac2cbc30e76-kubeadm-1.22.17-0.x86_64.rpm                                                            | 9.3 MB  00:00:05
(3/10): 3f5ba2b53701ac9102ea7c7ab2ca6616a8cd5966591a77577585fde1c434ef74-cri-tools-1.26.0-0.x86_64.rpm                                                           | 8.6 MB  00:00:05
(4/10): efb19d77fe222d45ef14a2bd89b8f1cfa55c90d057a75a5bb98dcfc99ef87556-kubectl-1.22.17-0.x86_64.rpm                                                            | 9.7 MB  00:00:07
(5/10): libnetfilter_cttimeout-1.0.0-7.el7.x86_64.rpm                                                                                                            |  18 kB  00:00:02
(6/10): libnetfilter_queue-1.0.2-2.el7_2.x86_64.rpm                                                                                                              |  23 kB  00:00:00
(7/10): socat-1.7.3.2-2.el7.x86_64.rpm                                                                                                                           | 290 kB  00:00:01
(8/10): libnetfilter_cthelper-1.0.0-11.el7.x86_64.rpm                                                                                                            |  18 kB  00:00:06
(9/10): 63123e8d7873ba1cec0577eb657b2de55e6f0f9a1c040b5f472d1cf1ba413edc-kubelet-1.22.17-0.x86_64.rpm                                                            |  20 MB  00:00:20
(10/10): 0f2a2afd740d476ad77c508847bad1f559afc2425816c1f2ce4432a62dfe0b9d-kubernetes-cni-1.2.0-0.x86_64.rpm                                                      |  17 MB  00:00:14
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                                                                    2.4 MB/s |  65 MB  00:00:27
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : kubectl-1.22.17-0.x86_64                                                                                                                                           1/10
  正在安装    : libnetfilter_cthelper-1.0.0-11.el7.x86_64                                                                                                                          2/10
  正在安装    : socat-1.7.3.2-2.el7.x86_64                                                                                                                                         3/10
  正在安装    : libnetfilter_cttimeout-1.0.0-7.el7.x86_64                                                                                                                          4/10
  正在安装    : cri-tools-1.26.0-0.x86_64                                                                                                                                          5/10
  正在安装    : libnetfilter_queue-1.0.2-2.el7_2.x86_64                                                                                                                            6/10
  正在安装    : conntrack-tools-1.4.4-7.el7.x86_64                                                                                                                                 7/10
  正在安装    : kubernetes-cni-1.2.0-0.x86_64                                                                                                                                      8/10
  正在安装    : kubelet-1.22.17-0.x86_64                                                                                                                                           9/10
  正在安装    : kubeadm-1.22.17-0.x86_64                                                                                                                                          10/10
  验证中      : kubeadm-1.22.17-0.x86_64                                                                                                                                           1/10
  验证中      : conntrack-tools-1.4.4-7.el7.x86_64                                                                                                                                 2/10
  验证中      : libnetfilter_queue-1.0.2-2.el7_2.x86_64                                                                                                                            3/10
  验证中      : cri-tools-1.26.0-0.x86_64                                                                                                                                          4/10
  验证中      : kubernetes-cni-1.2.0-0.x86_64                                                                                                                                      5/10
  验证中      : kubelet-1.22.17-0.x86_64                                                                                                                                           6/10
  验证中      : libnetfilter_cttimeout-1.0.0-7.el7.x86_64                                                                                                                          7/10
  验证中      : socat-1.7.3.2-2.el7.x86_64                                                                                                                                         8/10
  验证中      : libnetfilter_cthelper-1.0.0-11.el7.x86_64                                                                                                                          9/10
  验证中      : kubectl-1.22.17-0.x86_64                                                                                                                                          10/10

已安装:
  kubeadm.x86_64 0:1.22.17-0                                   kubectl.x86_64 0:1.22.17-0                                   kubelet.x86_64 0:1.22.17-0

作为依赖被安装:
  conntrack-tools.x86_64 0:1.4.4-7.el7             cri-tools.x86_64 0:1.26.0-0                    kubernetes-cni.x86_64 0:1.2.0-0      libnetfilter_cthelper.x86_64 0:1.0.0-11.el7
  libnetfilter_cttimeout.x86_64 0:1.0.0-7.el7      libnetfilter_queue.x86_64 0:1.0.2-2.el7_2      socat.x86_64 0:1.7.3.2-2.el7

完毕!
4.8 将kubelet设置为开机自动启动
sh 复制代码
[root@localhost ~]# sudo systemctl enable kubelet
Created symlink from /etc/systemd/system/multi-user.target.wants/kubelet.service to /usr/lib/systemd/system/kubelet.service.
4.9 拉取镜像
sh 复制代码
[root@localhost ~]# kubeadm config images pull --image-repository registry.aliyuncs.com/google_containers --kubernetes-version v1.22.17
[config/images] Pulled registry.aliyuncs.com/google_containers/kube-apiserver:v1.22.17
[config/images] Pulled registry.aliyuncs.com/google_containers/kube-controller-manager:v1.22.17
[config/images] Pulled registry.aliyuncs.com/google_containers/kube-scheduler:v1.22.17
[config/images] Pulled registry.aliyuncs.com/google_containers/kube-proxy:v1.22.17
[config/images] Pulled registry.aliyuncs.com/google_containers/pause:3.5
[config/images] Pulled registry.aliyuncs.com/google_containers/etcd:3.5.6-0
[config/images] Pulled registry.aliyuncs.com/google_containers/coredns:v1.8.4
4.10 初始化
sh 复制代码
[root@localhost ~]# sudo kubeadm init \
   --image-repository registry.aliyuncs.com/google_containers \
   --kubernetes-version v1.22.17 \
   --pod-network-cidr=10.244.0.0/16
[init] Using Kubernetes version: v1.22.17
[preflight] Running pre-flight checks
        [WARNING Firewalld]: firewalld is active, please ensure ports [6443 10250] are open or your cluster may not function correctly
[preflight] Pulling images required for setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
[certs] Using certificateDir folder "/etc/kubernetes/pki"
[certs] Generating "ca" certificate and key
[certs] Generating "apiserver" certificate and key
[certs] apiserver serving cert is signed for DNS names [kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local localhost.localdomain] and IPs [10.96.0.1 192.168.6.6]
[certs] Generating "apiserver-kubelet-client" certificate and key
[certs] Generating "front-proxy-ca" certificate and key
[certs] Generating "front-proxy-client" certificate and key
[certs] Generating "etcd/ca" certificate and key
[certs] Generating "etcd/server" certificate and key
[certs] etcd/server serving cert is signed for DNS names [localhost localhost.localdomain] and IPs [192.168.6.6 127.0.0.1 ::1]
[certs] Generating "etcd/peer" certificate and key
[certs] etcd/peer serving cert is signed for DNS names [localhost localhost.localdomain] and IPs [192.168.6.6 127.0.0.1 ::1]
[certs] Generating "etcd/healthcheck-client" certificate and key
[certs] Generating "apiserver-etcd-client" certificate and key
[certs] Generating "sa" key and public key
[kubeconfig] Using kubeconfig folder "/etc/kubernetes"
[kubeconfig] Writing "admin.conf" kubeconfig file
[kubeconfig] Writing "kubelet.conf" kubeconfig file
[kubeconfig] Writing "controller-manager.conf" kubeconfig file
[kubeconfig] Writing "scheduler.conf" kubeconfig file
[kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"
[kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"
[kubelet-start] Starting the kubelet
[control-plane] Using manifest folder "/etc/kubernetes/manifests"
[control-plane] Creating static Pod manifest for "kube-apiserver"
[control-plane] Creating static Pod manifest for "kube-controller-manager"
[control-plane] Creating static Pod manifest for "kube-scheduler"
[etcd] Creating static Pod manifest for local etcd in "/etc/kubernetes/manifests"
[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s
[apiclient] All control plane components are healthy after 6.006214 seconds
[upload-config] Storing the configuration used in ConfigMap "kubeadm-config" in the "kube-system" Namespace
[kubelet] Creating a ConfigMap "kubelet-config-1.22" in namespace kube-system with the configuration for the kubelets in the cluster
[upload-certs] Skipping phase. Please see --upload-certs
[mark-control-plane] Marking the node localhost.localdomain as control-plane by adding the labels: [node-role.kubernetes.io/master(deprecated) node-role.kubernetes.io/control-plane node.kubernetes.io/exclude-from-external-load-balancers]
[mark-control-plane] Marking the node localhost.localdomain as control-plane by adding the taints [node-role.kubernetes.io/master:NoSchedule]
[bootstrap-token] Using token: ruv9vt.6wunfkqdstjdxu4g
[bootstrap-token] Configuring bootstrap tokens, cluster-info ConfigMap, RBAC Roles
[bootstrap-token] configured RBAC rules to allow Node Bootstrap tokens to get nodes
[bootstrap-token] configured RBAC rules to allow Node Bootstrap tokens to post CSRs in order for nodes to get long term certificate credentials
[bootstrap-token] configured RBAC rules to allow the csrapprover controller automatically approve CSRs from a Node Bootstrap Token
[bootstrap-token] configured RBAC rules to allow certificate rotation for all node client certificates in the cluster
[bootstrap-token] Creating the "cluster-info" ConfigMap in the "kube-public" namespace
[kubelet-finalize] Updating "/etc/kubernetes/kubelet.conf" to point to a rotatable kubelet client certificate and key
[addons] Applied essential addon: CoreDNS
[addons] Applied essential addon: kube-proxy

Your Kubernetes control-plane has initialized successfully!

To start using your cluster, you need to run the following as a regular user:

  mkdir -p $HOME/.kube
  sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
  sudo chown $(id -u):$(id -g) $HOME/.kube/config

Alternatively, if you are the root user, you can run:

  export KUBECONFIG=/etc/kubernetes/admin.conf

You should now deploy a pod network to the cluster.
Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
  https://kubernetes.io/docs/concepts/cluster-administration/addons/

Then you can join any number of worker nodes by running the following on each as root:

kubeadm join 192.168.6.6:6443 --token ruv9vt.6wunfkqdstjdxu4g \
        --discovery-token-ca-cert-hash sha256:e3373d115babd86359768641306bf6e204cd9e479ff2062bde27e999acbce386
4.11 根据上述步骤提示,执行如下命令
sh 复制代码
[root@localhost ~]# mkdir -p $HOME/.kube
[root@localhost ~]# sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
[root@localhost ~]# sudo chown $(id -u):$(id -g) $HOME/.kube/config
4.12 下载并应用Flannel的CNI插件
sh 复制代码
[root@localhost ~]# kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/v0.19.2/Documentation/kube-flannel.yml
namespace/kube-flannel created
clusterrole.rbac.authorization.k8s.io/flannel created
clusterrolebinding.rbac.authorization.k8s.io/flannel created
serviceaccount/flannel created
configmap/kube-flannel-cfg created
daemonset.apps/kube-flannel-ds created
4.13 等待约1-2分钟,检查所有组件是否为Running
sh 复制代码
[root@localhost ~]# kubectl get pods --all-namespaces -w
NAMESPACE      NAME                                            READY   STATUS     RESTARTS   AGE
kube-flannel   kube-flannel-ds-87zjx                           0/1     Init:0/2   0          1s
kube-system    coredns-7f6cbbb7b8-gjpqb                        0/1     Pending    0          82s
kube-system    coredns-7f6cbbb7b8-hkt7q                        0/1     Pending    0          82s
kube-system    etcd-localhost.localdomain                      1/1     Running    0          96s
kube-system    kube-apiserver-localhost.localdomain            1/1     Running    0          96s
kube-system    kube-controller-manager-localhost.localdomain   1/1     Running    0          96s
kube-system    kube-proxy-8br47                                1/1     Running    0          82s
kube-system    kube-scheduler-localhost.localdomain            1/1     Running    0          96s
kube-flannel   kube-flannel-ds-87zjx                           0/1     Init:0/2   0          23s
kube-flannel   kube-flannel-ds-87zjx                           0/1     Init:1/2   0          24s
kube-flannel   kube-flannel-ds-87zjx                           0/1     PodInitializing   0          46s
kube-flannel   kube-flannel-ds-87zjx                           1/1     Running           0          47s
kube-system    coredns-7f6cbbb7b8-hkt7q                        0/1     Pending           0          2m16s
kube-system    coredns-7f6cbbb7b8-gjpqb                        0/1     Pending           0          2m16s
kube-system    coredns-7f6cbbb7b8-hkt7q                        0/1     ContainerCreating   0          2m16s
kube-system    coredns-7f6cbbb7b8-gjpqb                        0/1     ContainerCreating   0          2m16s
kube-system    coredns-7f6cbbb7b8-gjpqb                        0/1     Running             0          2m18s
kube-system    coredns-7f6cbbb7b8-hkt7q                        0/1     Running             0          2m19s
^C
4.14 kubectl get nodes
sh 复制代码
[root@localhost ~]# kubectl get nodes
NAME                    STATUS   ROLES                  AGE     VERSION
localhost.localdomain   Ready    control-plane,master   5m14s   v1.22.17
4.15 kubectl get pods -A
sh 复制代码
[root@localhost ~]# kubectl get pods -A
NAMESPACE      NAME                                            READY   STATUS    RESTARTS   AGE
kube-flannel   kube-flannel-ds-87zjx                           1/1     Running   0          3m58s
kube-system    coredns-7f6cbbb7b8-gjpqb                        0/1     Running   0          5m19s
kube-system    coredns-7f6cbbb7b8-hkt7q                        0/1     Running   0          5m19s
kube-system    etcd-localhost.localdomain                      1/1     Running   0          5m33s
kube-system    kube-apiserver-localhost.localdomain            1/1     Running   0          5m33s
kube-system    kube-controller-manager-localhost.localdomain   1/1     Running   0          5m33s
kube-system    kube-proxy-8br47                                1/1     Running   0          5m19s
kube-system    kube-scheduler-localhost.localdomain            1/1     Running   0          5m33s

最后,可以执行如下命令,让你以后少走弯路!

sh 复制代码
[root@localhost ~]# sudo yum versionlock add kubeadm kubelet kubectl docker-ce
[root@localhost ~]# sudo systemctl stop firewalld
[root@localhost ~]# sudo systemctl disabled firewalld

锁定k8s当前版本,在执行yum update 命令时,禁止升级!

内网可以关闭防火墙!

相关推荐
星环处相逢8 分钟前
K8s 实战笔记:3 种发布策略 + YAML 配置全攻略
java·docker·kubernetes
schinber9 分钟前
docker compose如何管理docker服务
运维·docker·容器
枫子有风10 分钟前
Docker的安装【下载安装、报错、镜像配置、常用命令】
运维·docker·容器
leo825...11 分钟前
Docker常见命令(总结)
运维·docker·容器
LucidX11 分钟前
Kubernetes 1.20 集群部署完整教程
云原生·容器·kubernetes
num_killer1 小时前
小白的Docker学习
学习·docker·eureka
火龙果研究院1 小时前
利用docker和docker-compose部署单机kafka
docker·容器·kafka
BIBI20491 小时前
通过 HeidiSQL 连接 CentOS 7 中的 MySQL 5.7
linux·windows·mysql·centos·数据库管理·环境搭建·服务器运维
java_logo1 小时前
基于 Docker 的 MongoDB 部署与使用指南
mongodb·docker·容器·mongodb部署·mongodb部署文档·mongodb部署方案·docker部署mongodb
一尘之中1 小时前
在 Ubuntu 上安装 Docker 的完整指南(使用国内镜像源)
linux·docker·ai写作