更多技术博客,请关注微信公众号:运维之美
CentOS 停更时间表
版本 | 停更时间 |
---|---|
CentOS 6 | 2020/11/30 |
CentOS 7 | 2024/6/30 |
CentOS 8 | 2021/12/1 |
支持的转换路径,表示官方测试过
CentOS 转换 RHEL 示例
转换示例环境
本示例模拟以下环境,使用 RHEL 7.9 ISO 文件作为转换使用的 yum repository 源,因此需要以下环境即可:
当前可运行的 CentOS 7.9 操作系统
RHEL 7.9 ISO 文件(rhel-server-7.9-x86_64-dvd.iso)
从CentOS 至 RHEL 转换过程
查看当前 CentOS版本
$ cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
在 CentOS 中安装 convert2rhel
方法1:在 CentOS 中执行命令,分别下载 convert2rhel.reop、Red Hat GPG 密钥、SSL 证书,然后安装 convert2rhel 工具。
$ curl -o /etc/yum.repos.d/convert2rhel.repo https://ftp.redhat.com/redhat/convert2rhel/7/convert2rhel.repo
$ curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release https://www.redhat.com/security/data/fd431d51.txt
$ curl --create-dirs -o /etc/rhsm/ca/redhat-uep.pem https://ftp.redhat.com/redhat/convert2rhel/redhat-uep.pem
$ yum -y install convert2