모든 패키지에는 Packager와 Build Host, Vendor에 Centos에 대한 정보가 들어가 있습니다
아래 예시로 bash 패키지를 확인 해 봅니다
[root@switch ~]# rpm -qi bash
Name : bash
Version : 4.4.19
Release : 14.el8
Architecture: x86_64
Install Date: Fri 23 Jul 2021 04:43:31 PM KST
Group : Unspecified
Size : 6861620
License : GPLv3+
Signature : RSA/SHA256, Wed 13 Jan 2021 12:21:35 AM KST, Key ID 05b555b38483c65d
Source RPM : bash-4.4.19-14.el8.src.rpm
Build Date : Tue 12 Jan 2021 05:27:45 PM KST
Build Host : x86-01.mbox.centos.org
Relocations : (not relocatable)
Packager : CentOS Buildsys <bugs@centos.org>
Vendor : CentOS
URL : https://www.gnu.org/software/bash
Summary : The GNU Bourne Again shell
Description :
The GNU Bourne Again shell (Bash) is a shell or command language
interpreter that is compatible with the Bourne shell (sh). Bash
incorporates useful features from the Korn shell (ksh) and the C shell
(csh). Most sh scripts can be run by bash without modification.
최종 스위칭이 완료되면 모두 rocky linux에서 packaging 한 패키지가 설치되어야 합니다
[root@switch ~]# bash migrate2rocky.sh
Usage: migrate2rocky.sh [OPTIONS]
Options:
-h Display this help
-r Convert to rocky
-V Verify switch
!! USE WITH CAUTION !!
-r 옵션을 주고 수행 합니다
[root@switch ~]# bash migrate2rocky.sh -r
Removing dnf cache
Preparing to migrate CentOS Linux 8 to Rocky Linux 8.
Determining repository names for CentOS Linux 8.
수행하면 먼저 깔려있는 패키지와 rocky repo에 패키지를 비교 합니다
현재 시스템에 enabled 되어있는 모든 repo를 체크하므로 불필요하거나 OS repo 외에는 disable 하고 사용하세요
첫번째로 업데이트가 필요한 패키지가 업데이트 됩니다
Running dnf update before we attempt the migration.
Last metadata expiration check: 0:01:03 ago on Thu 12 Aug 2021 12:45:30 PM KST.
Dependencies resolved.
=================================================================================================================
Package Arch Version Repo Size
=================================================================================================================
Installing:
kernel x86_64 4.18.0-305.12.1.el8_4 baseos 5.9 M
kernel-core x86_64 4.18.0-305.12.1.el8_4 baseos 36 M
kernel-modules x86_64 4.18.0-305.12.1.el8_4 baseos 28 M
Upgrading:
NetworkManager x86_64 1:1.30.0-10.el8_4 baseos 2.6 M
NetworkManager-adsl x86_64 1:1.30.0-10.el8_4 baseos 141 k
NetworkManager-bluetooth x86_64 1:1.30.0-10.el8_4 baseos 167 k
NetworkManager-config-server noarch 1:1.30.0-10.el8_4 baseos 128 k
NetworkManager-libnm x86_64 1:1.30.0-10.el8_4 baseos 1.8 M
NetworkManager-team x86_64 1:1.30.0-10.el8_4 baseos 146 k
NetworkManager-tui x86_64 1:1.30.0-10.el8_4 baseos 328 k
NetworkManager-wifi x86_64 1:1.30.0-10.el8_4 baseos 186 k
NetworkManager-wwan x86_64 1:1.30.0-10.el8_4 baseos 173 k
bash x86_64 4.4.20-1.el8_4 baseos 1.5 M
bind-export-libs x86_64 32:9.11.26-4.el8_4 baseos 1.1 M
bind-libs x86_64 32:9.11.26-4.el8_4 appstream 174 k
bind-libs-lite x86_64 32:9.11.26-4.el8_4 appstream 1.2 M
Complete!
Subscription Manager found on system.
If you're converting from a subscription-managed distribution such as RHEL then
you may no longer need subscription-manager or dnf-plugin-subscription-manager.
While it won't hurt anything to have it on your system you may be able to safely
remove it with:
"dnf remove subscription-manager dnf-plugin-subscription-manager".
Take care that it doesn't remove something that you want to keep.
The subscription-manager dnf plugin may be enabled for the benefit of
Subscription Management. If no longer desired, you can use
"subscription-manager config --rhsm.auto_enable_yum_plugins=0" to block this
behavior.
Generating grub configuration file ...
File descriptor 3 (/dev/pts/2) leaked on vgs invocation. Parent PID 567534: /usr/sbin/grub2-probe
File descriptor 4 (/dev/pts/2) leaked on vgs invocation. Parent PID 567534: /usr/sbin/grub2-probe
File descriptor 5 (/var/log/migrate2rocky.log) leaked on vgs invocation. Parent PID 567534: /usr/sbin/grub2-probe
File descriptor 3 (/dev/pts/2) leaked on vgs invocation. Parent PID 567534: /usr/sbin/grub2-probe
File descriptor 4 (/dev/pts/2) leaked on vgs invocation. Parent PID 567534: /usr/sbin/grub2-probe
File descriptor 5 (/var/log/migrate2rocky.log) leaked on vgs invocation. Parent PID 567534: /usr/sbin/grub2-probe
File descriptor 3 (/dev/pts/2) leaked on vgs invocation. Parent PID 569854: /usr/sbin/grub2-probe
File descriptor 4 (/dev/pts/2) leaked on vgs invocation. Parent PID 569854: /usr/sbin/grub2-probe
File descriptor 5 (/var/log/migrate2rocky.log) leaked on vgs invocation. Parent PID 569854: /usr/sbin/grub2-probe
File descriptor 3 (/dev/pts/2) leaked on vgs invocation. Parent PID 569854: /usr/sbin/grub2-probe
File descriptor 4 (/dev/pts/2) leaked on vgs invocation. Parent PID 569854: /usr/sbin/grub2-probe
File descriptor 5 (/var/log/migrate2rocky.log) leaked on vgs invocation. Parent PID 569854: /usr/sbin/grub2-probe
Adding boot menu entry for EFI firmware configuration
done
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0001,0004,0002,0000,0003
Boot0000* UiApp
Boot0002* UEFI QEMU QEMU HARDDISK
Boot0003* EFI Internal Shell
Boot0004* CentOS Linux
Boot0001* Rocky Linux
Done, please reboot your system.
A log of this installation can be found at /var/log/migrate2rocky.log