Removing dnf cache Preparing to migrate CentOS Linux 8 to Rocky Linux 8.
Determining repository names for CentOS Linux 8.....
Found the following repositories which map from CentOS Linux 8 to Rocky Linux 8: CentOS Linux 8 Rocky Linux 8 appstream appstream baseos baseos extras extras
Getting system package names for CentOS Linux 8......Error: No Matches found
Can't get package that provides system-release.
An error occurred while we were attempting to convert your system to Rocky Linux. Your system may be unstable. Script will now exit to prevent possible damage.
A log of this installation can be found at /var/log/migrate2rocky.log
再次执行:
1 2 3 4 5 6 7 8
$ sudo ./migrate2rocky.sh -r
...
Complete!
Done, please reboot your system. A log of this installation can be found at /var/log/migrate2rocky.log
3. 验证迁移结果
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
$ ./migrate2rocky.sh -V # 输出好简单? Creating a list of RPMs installed: begin Verifying RPMs installed against RPM database: begin
A log of this installation can be found at /var/log/migrate2rocky.log # 继续执行如下命令查看 # check release file $ cat /etc/redhat-release Rocky Linux release 8.5 (Green Obsidian) # check that the system boots Rocky Linux kernel by default $ sudo grubby --info DEFAULT | grep Rocky title="Rocky Linux (4.18.0-348.2.1.el8_5.x86_64) 8.5 (Green Obsidian)"