RHEL convert2rhel:Alma 10 上没有这个包,先做预检
convert2rhel 不是“下载一个脚本就能跑”的工具:它要从 Red Hat 订阅仓库拿包,还要有可用的 RHEL 订阅。AlmaLinux 10 上连包都没有。本页先把“有没有工具”这件事验证清楚,再列预检项。
在 PVE 960(AlmaLinux 10.2)执行:
cat /etc/os-releaseuname -rrpm -q kerneldnf search convert2rhelsudo dnf install -y convert2rheldnf repolistE3 记录:plans/content-expansion/evidence/rhel/rhel-convert2rhel/run.json。
先给结论:Alma 10 没有这个包
Section titled “先给结论:Alma 10 没有这个包”$ dnf search convert2rhelNo match for argument: convert2rhel
$ sudo dnf install -y convert2rhelError: Unable to find a match: convert2rhel启用的仓库:
appstream AlmaLinux 10 - AppStreambaseos AlmaLinux 10 - BaseOScrb AlmaLinux 10 - CRBextras AlmaLinux 10 - Extras四个仓库都没有 convert2rhel。
convert2rhel 的包从哪来
Section titled “convert2rhel 的包从哪来”- 官方工具,通常从 RHEL 订阅仓库 获取;
- 需要 RHEL 订阅/证书与可访问的 Red Hat CDN;
- 不是 Alma/Rocky 基础仓库的一部分。
所以“在 Alma 上 dnf install convert2rhel”本身就不成立,要先解决工具与订阅来源。
| 项目 | 命令/检查 |
|---|---|
| 发行版 | cat /etc/os-release |
| 运行内核 | uname -r |
| 已装内核 | rpm -q kernel |
| 仓库 | dnf repolist |
| 备份/快照 | VM snapshot 或 rsync 全量 |
| RHEL 订阅 | 组织 ID/激活码或 Satellite |
| 启动方式 | BIOS/UEFI、grub 配置 |
| 第三方包 | rpm -qa --qf 清单 |
本次 Alma 10.2 记录:
NAME="AlmaLinux"VERSION="10.2 (Lavender Lion)"6.12.0-211.64.1.el10_2.x86_64kernel-6.12.0-211.64.1.el10_2.x86_64kernel-6.12.0-211.73.1.el10_2.x86_64装有两个内核,转换前要确认当前运行内核与目标内核。
为什么没继续
Section titled “为什么没继续”- Alma 10 仓库无
convert2rhel; - 没有可用的 RHEL 订阅仓库/证书来安装工具;
- 强行用第三方 RPM 也不等于受支持转换。
因此本页停在“工具边界 + 预检”,不把 dnf install 失败写成转换成功。
真要转换时的路径
Section titled “真要转换时的路径”- 准备 RHEL 订阅与可访问的 Red Hat CDN;
- 从受支持渠道获取
convert2rhel; - 在克隆/快照上跑预检(
convert2rhel analyze,如版本支持); - 确认第三方包/内核/启动项;
- 执行转换并验证
subscription-manager status、dnf repolist、重启。
未实测与边界
Section titled “未实测与边界”- 未安装/运行 convert2rhel;
- 未测试 Alma 10 是否在官方支持矩阵;
- 未测试转换后的启动/回滚;
- 未测试第三方包兼容。