CentOS Stream 8已于2024年5月31日停止更新和维护。因此,我无法为您提供从CentOS 8升级到CentOS Stream 8的具体步骤,不过我可以为您提供一些建议,帮助您顺利完成升级过程。
cat /etc/redhat-release 检查您的系统版本,确保您的系统版本在8.3及以上,以便直接升级到CentOS Stream。/etc/yum.repos.d/ 目录下的仓库配置文件来实现。sudo dnf update 命令更新系统软件包列表和已安装的软件包到最新版本。sudo dnf install centos-release-stream 命令以安装CentOS Stream库。sudo dnf swap centos-{linux,stream}-repos 和 sudo dnf distro-sync 命令将系统升级至CentOS Stream。cat /etc/redhat-release 命令验证系统是否已经成功升级到CentOS Stream。network 更改为 NetworkManager。解决方案包括使用 systemctl restart NetworkManager 命令重启网络服务,使用 nmcli c reload 命令重载网卡配置,以及使用 systemctl status NetworkManager 命令查看网络服务状态。sudo dnf --disablerepo '*' --enablerepo=centos-stream-repos dnf distro-sync。请注意,由于CentOS Stream 8已经终止维护,强烈建议升级到CentOS Stream 9或迁移到其他长期维护的Linux发行版,如Debian、Ubuntu、Anolis OS或Rocky Linux。