安装 Springdale Linux Yum 存储库

要将我们的 CentOS 8 操作系统迁移到 Springdale Linux (SDL),我们需要安装 SDL yum 存储库。

Springdale Linux 的最新稳定版本是 8.4,因此我们正在安装相同的 yum 存储库。

# rpm -ivh http://springdale.princeton.edu/data/springdale/8.4/x86_64/os/BaseOS/Packages/{springdale-appstream-8-0.sdl8.2.noarch.rpm,springdale-core-8-0.sdl8.2.noarch.rpm,springdale-release-8.4-0.42.el8.x86_64.rpm}
Retrieving http://springdale.princeton.edu/data/springdale/8.4/x86_64/os/BaseOS/Packages/springdale-appstream-8-0.sdl8.2.noarch.rpm
Retrieving http://springdale.princeton.edu/data/springdale/8.4/x86_64/os/BaseOS/Packages/springdale-core-8-0.sdl8.2.noarch.rpm
Retrieving http://springdale.princeton.edu/data/springdale/8.4/x86_64/os/BaseOS/Packages/springdale-release-8.4-0.42.el8.x86_64.rpm
warning: /var/tmp/rpm-tmp.cxDAkl: Header V3 RSA/SHA256 Signature, key ID 41a40948: NOKEY
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:springdale-core-8-0.sdl8.2       ################################# [ 33%]
   2:springdale-release-8.4-0.42.el8  ################################# [ 67%]
   3:springdale-appstream-8-0.sdl8.2  ################################# [100%]

现在,执行以下 dnf 命令开始迁移过程。

# dnf distro-sync -y

使用新安装的 Linux 内核重新启动 Linux 服务器。

# reboot

GRUB 菜单有一个关于 Springdale Linux 的新条目。
按 <ENTER> 以使用新内核启动操作系统。

成功启动后,我们将到达基于 Linux 命令行 (CLI) 的登录提示。

以 root 用户身份登录。

更新 Linux 服务器

使用 dnf 命令更新 CentOS Linux 的软件包。

# dnf update -y

该过程还会更新 Linux 内核,因此,最好使用新内核重新启动操作系统。

# reboot
on  it road.com

移除 CentOS 特定的软件包

在迁移到 Springdale Linux 之前,我们必须从操作系统中删除与 CentOS 品牌和 yum 存储库相关的软件包。

执行以下命令删除 CentOS 特定的软件包。

# rpm -e --nodeps centos-gpg-keys centos-linux-release centos-linux-repos

如果我们从基于 GUI 的 CentOS Linux 迁移,那么我们还必须删除 centos-backgrounds 、 centos-indexhtml 和 centos-logos 软件包。

检查我们当前的 Linux 操作系统

在 ssh 客户端的帮助下,以 root 用户身份连接 centos-8.onitroad.com。

执行以下命令来检查我们当前 Linux 操作系统的版本。

# cat /etc/os-release
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
# cat /etc/centos-release
CentOS Linux release 8.3.2011

还要检查 Linux 内核的版本。

# uname -r
4.18.0-240.1.1.el8_3.x86_64

检查新 Linux 操作系统

在 Linux bash 提示符下执行以下命令以检查操作系统版本和其他详细信息。

# cat /etc/os-release
NAME="Springdale Open Enterprise Linux"
VERSION="8.4 (Modena)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.4"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Springdale Open Enterprise Linux 8.4 (Modena)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:springdale:enterprise_linux:8.4:GA"
HOME_URL="https://springdale.princeton.edu/"
BUG_REPORT_URL="https://springdale.princeton.edu/bugzilla"
REDHAT_BUGZILLA_PRODUCT="Springdale Open Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.4
REDHAT_SUPPORT_PRODUCT="Springdale Open Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.4"
# cat /etc/springdale-release
Springdale Open Enterprise Linux release 8.4 (Modena)

还要检查新 Linux 内核的版本。

# uname -r
4.18.0-305.7.1.el8_4.x86_64
将 CentOS 8 操作系统迁移到 Springdale Linux

Springdale Linux (SDL) 是 RHEL 的一个分支,也是另一个 CentOS 替代品。
在本文中,我们将了解如何将操作系统迁移到 SDL。

日期:2020-09-17 00:11:54 来源:oir作者:oir