欢迎来到之路教程(on itroad-com)
将 CentOS Linux 服务器升级为 CentOS Stream
使用 ssh 客户端以 root 用户身份与 CentOS Linux 服务器连接。
检查当前 Linux 操作系统的版本。
# cat /etc/centos-release CentOS Linux release 8.3.2011
我们目前使用的是 CentOS 8.3,输出可能因 Linux 服务器而异。
为已安装的 yum 存储库构建缓存。
# dnf makecache CentOS Linux 8 - AppStream 363 kB/s | 6.3 MB 00:17 CentOS Linux 8 - BaseOS 312 kB/s | 2.3 MB 00:07 CentOS Linux 8 - Extras 1.1 kB/s | 1.5 kB 00:01 Metadata cache created.
使用 dnf 命令安装 centos-release-stream 软件包。
# dnf install -y centos-release-stream
现在,通过执行以下命令将 CentOS Linux 的 yum 存储库替换为 CentOS Stream。
# dnf swap -y centos-{linux,stream}-repos
执行以下 dnf 命令以升级和同步 Linux 服务器中的 CentOS Stream 发行版的所有软件包。
# dnf -y distro-sync
CentOS Linux 服务器已升级到 CentOS Stream。
立即检查 Linux 服务器的版本。
# cat /etc/centos-release CentOS Stream release 8
我们已成功将 CentOS Linux 8 服务器连同已安装的软件包迁移到 CentOS Stream。
CentOS Linux 正在转向 CentOS Stream 操作系统。
本文将指导我们将现有的 CentOS Linux 8 服务器迁移到 CentOS Stream。
日期:2020-09-17 00:11:54 来源:oir作者:oir