{"id":17268,"date":"2022-06-13T09:14:06","date_gmt":"2022-06-13T07:14:06","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/?p=17268"},"modified":"2022-06-21T15:59:41","modified_gmt":"2022-06-21T13:59:41","slug":"migrating-centos-8-to-oracle-linux-ol8","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/","title":{"rendered":"Migrating CentOS 8 to Oracle linux OL8"},"content":{"rendered":"\n<p>As you might be aware, CentOS 8 is end of life since the 31st of December 2021.  If you are still using and running CentOS 8, you might want to migrate to some alternative distributions in order to keep a Red Hat compatibility.<\/p>\n\n\n\n<p>Those alternative distributions might be chosen between :<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Rocky Linux<\/li><li>AlmaLinux<\/li><li>Red Hat Enterprise Linux<\/li><li>Oracle Linux<\/li><\/ul>\n\n\n\n<p>We are already having a few blogs describing how to migrate to Rocky Linux, AlmaLinux and Red Hat Enterprise Linux :<\/p>\n\n\n\n<ul>\n<li><a href=\"https:\/\/www.dbi-services.com\/blog\/switching-from-centos-8-to-red-hat-8\/\">Migrating to Red Had Enterprise Linux 8<\/a><\/li>\n<li><a href=\"https:\/\/www.dbi-services.com\/blog\/migrating-from-centos-8-to-almalinux-8\/\">Migrating to AlmaLinux 8<\/a><\/li>\n<li><a href=\"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/\">Migrating to Rocky Linux 8<\/a><\/li>\n<\/ul>\n\n\n\n<p>In this blog we will see how to migrate from CentOS 8 to Oracle Linux 8.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h3>centos2ol.sh Oracle Script<\/h3>\n\n\n\n<p>Oracle provides a script to be able to switch from CentOS Linux 6, 7 or 8 to its equivalent version of Oracle Linux. The script as well as requirements, limitations, know issues and explanations can be found on the <a href=\"https:\/\/github.com\/oracle\/centos2ol\">oracle GitHub website<\/a>.<\/p>\n\n\n\n<p>Please read carefully the limitations part. Access to both CentOS and Oracle Linux yum repositories is mandatory.<\/p>\n\n\n\n<p>Before starting the migration using the script it is very important to ensure having a complete working backup of the system.<\/p>\n\n\n\n<h3>Migration demo<\/h3>\n\n\n\n<p>I have setup a linux environment running CentOS 8.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1;highlight: [1]\">[root@centosmigr ~]# cat \/etc\/centos-release\nCentOS Linux release 8.4.2105<\/pre>\n\n\n\n<p>We need to download the centos2ol.sh script and move it to the CentOS Linux server to be migrated. This can be done using curl command.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1;highlight: [1,6]\">[root@centosmigr ~]# curl -O https:\/\/raw.githubusercontent.com\/oracle\/centos2ol\/main\/centos2ol.sh\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n100 22928  100 22928    0     0   120k      0 --:--:-- --:--:-- --:--:--  121k\n\n[root@centosmigr ~]# ls -l centos*.sh\n-rw-r--r--. 1 root root 22928 Jun  8 08:13 centos2ol.sh<\/pre>\n\n\n\n<p>Let&#8217;s first check the current kernel and kernel executable files :<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1,4]\">[root@centosmigr ~]# uname -a\nLinux centosmigr 4.18.0-305.3.1.el8.x86_64 #1 SMP Tue Jun 1 16:14:33 UTC 2021 x86_64 x86_64 x86_64 GNU\/Linux\n\n[root@centosmigr ~]# ls -l \/boot\ntotal 153964\n-rw-r--r--. 1 root root   192095 Jun  1  2021 config-4.18.0-305.3.1.el8.x86_64\ndrwxr-xr-x. 3 root root       17 Jun  2  2021 efi\ndrwxr-xr-x. 2 root root       39 Jun  2  2021 grub\ndrwx------. 4 root root       83 Jun  8 08:14 grub2\n-rw-------. 1 root root 64383726 Jun  2  2021 initramfs-0-rescue-40ec35b37a254049be3d85f9173b39a1.img\n-rw-------. 1 root root 51128711 Jun  2  2021 initramfs-4.18.0-305.3.1.el8.x86_64.img\n-rw-------. 1 root root 17727685 Jun  3 14:44 initramfs-4.18.0-305.3.1.el8.x86_64kdump.img\ndrwxr-xr-x. 3 root root       21 Jun  2  2021 loader\n-rw-------. 1 root root  4164308 Jun  1  2021 System.map-4.18.0-305.3.1.el8.x86_64\n-rwxr-xr-x. 1 root root 10026120 Jun  2  2021 vmlinuz-0-rescue-40ec35b37a254049be3d85f9173b39a1\n-rwxr-xr-x. 1 root root 10026120 Jun  1  2021 vmlinuz-4.18.0-305.3.1.el8.x86_64\n<\/pre>\n\n\n\n<p>And my current centos linux package :<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">[root@centosmigr ~]# rpm -qa | grep -i centos\ncentos-linux-repos-8-2.el8.noarch\ncentos-logos-85.5-1.el8.x86_64\ncentos-linux-release-8.4-1.2105.el8.noarch\ncentos-gpg-keys-8-2.el8.noarch\n<\/pre>\n\n\n\n<p>We can run the conversion script from Oracle with centos user knowing it has the sudo priviledge. The option of the script are the following one :<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">[centos@centosmigr ~]$ sudo bash \/root\/centos2ol.sh -h\nUsage: centos2ol.sh [OPTIONS]\n\nOPTIONS\n-h\n        Display this help and exit\n-k\n        Do not install the UEK kernel and disable UEK repos\n-r\n        Reinstall all CentOS RPMs with Oracle Linux RPMs\n        Note: This is not necessary for support\n-V\n        Verify RPM information before and after the switch\n<\/pre>\n\n\n\n<p>Note that in can we would prefer to migrate to the Red Hat compatible Kernel and not to UEK, we can use the option -k. This option will not install the UEK kernel and also disable UEK repository.<\/p>\n\n\n\n<p>We will run the script with the -V option.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">[centos@centosmigr ~]$ sudo bash \/root\/centos2ol.sh -V\n<\/pre>\n\n\n\n<p>After a first few checks, the script will backup and remove CentOS repository files, followed by a download and an installation of Oracle Linux repositories.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1\">Backing up and removing old repository files...\nRemoving CentOS-specific yum configuration from \/etc\/yum.conf\n<\/pre>\n\n\n\n<p>We can easily confirm this by checking the yum repository files.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">[centos@centosmigr tmp]$ ls -l \/etc\/yum.repos.d\/\ntotal 60\n-rw-r--r--. 1 root root  891 Jun  8 08:34 CentOS-Linux-AppStream.repo.disabled\n-rw-r--r--. 1 root root  876 Jun  8 08:34 CentOS-Linux-BaseOS.repo.disabled\n-rw-r--r--. 1 root root 1302 Jun  8 08:34 CentOS-Linux-ContinuousRelease.repo.disabled\n-rw-r--r--. 1 root root  490 Jun  8 08:34 CentOS-Linux-Debuginfo.repo.disabled\n-rw-r--r--. 1 root root  904 Jun  8 08:34 CentOS-Linux-Devel.repo.disabled\n-rw-r--r--. 1 root root  876 Jun  8 08:34 CentOS-Linux-Extras.repo.disabled\n-rw-r--r--. 1 root root  891 Jun  8 08:34 CentOS-Linux-FastTrack.repo.disabled\n-rw-r--r--. 1 root root  912 Jun  8 08:34 CentOS-Linux-HighAvailability.repo.disabled\n-rw-r--r--. 1 root root  865 Jun  8 08:34 CentOS-Linux-Media.repo.disabled\n-rw-r--r--. 1 root root  878 Jun  8 08:34 CentOS-Linux-Plus.repo.disabled\n-rw-r--r--. 1 root root  896 Jun  8 08:34 CentOS-Linux-PowerTools.repo.disabled\n-rw-r--r--. 1 root root 1070 Jun  8 08:34 CentOS-Linux-Sources.repo.disabled\n-rw-r--r--. 1 root root 2961 Jun  8 08:35 oracle-linux-ol8.repo\n-rw-r--r--. 1 root root  470 May 11 22:21 uek-ol8.repo\n-rw-r--r--. 1 root root  243 May 11 22:21 virt-ol8.repo\n<\/pre>\n\n\n\n<p>The CentOS repositories have been disabled and the new Oracle Linux repositories have been installed.<\/p>\n\n\n\n<p>The script will then download latest Oracle Linux release package.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">Downloading Oracle Linux release package...\nOracle Linux 8 BaseOS Latest (x86_64)                                                                                                                                                                                         146 MB\/s |  46 MB     00:00\nOracle Linux 8 Application Stream (x86_64)                                                                                                                                                                                    131 MB\/s |  36 MB     00:00\nLatest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 8 (x86_64)                                                                                                                                                    152 MB\/s |  48 MB     00:00\nLast metadata expiration check: 0:00:08 ago on Wed 08 Jun 2022 08:34:52 AM UTC.\n(1\/3): oraclelinux-release-el8-1.0-23.el8.x86_64.rpm                                                                                                                                                                          567 kB\/s |  21 kB     00:00\n(2\/3): redhat-release-8.6-0.1.0.1.el8.x86_64.rpm                                                                                                                                                                              497 kB\/s |  19 kB     00:00\n(3\/3): oraclelinux-release-8.6-1.0.5.el8.x86_64.rpm                                                                                                                                                                           1.6 MB\/s |  77 kB     00:00\n<\/pre>\n\n\n\n<p>In order to finally start switching old CentOS release package with Oracle Linux.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">Switching old release package with Oracle Linux...\n<\/pre>\n\n\n\n<p>The base packages for CentOS will be removed and the one for Oracle Linux will be installed.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1\">Enabling ol8_appstream which replaces appstream\nEnabling ol8_baseos_latest which replaces baseos\nInstalling base packages for Oracle Linux...\nOracle Linux 8 BaseOS Latest (x86_64)                                                                                                                                                                                         202 kB\/s | 3.6 kB     00:00\nOracle Linux 8 Application Stream (x86_64)                                                                                                                                                                                    204 kB\/s | 3.9 kB     00:00\n&gt; Package basesystem-11-5.el8.noarch is already installed.\nPackage initscripts-10.00.15-1.el8.x86_64 is already installed.\nPackage grub2-pc-1:2.02-99.el8.x86_64 is already installed.\nPackage grubby-8.40-41.el8.x86_64 is already installed.\n&gt; ==============================================================================================================================================================================================================================================================\n Package                                                       Architecture                                    Version                                                                       Repository                                                  Size\n==============================================================================================================================================================================================================================================================\nInstalling:\n kernel-uek                                                    x86_64                                          5.4.17-2136.307.3.6.el8uek                                                    ol8_UEKR6                                                  109 M\n oracle-logos                                                  x86_64                                          84.5-1.0.1.el8                                                                ol8_baseos_latest                                          1.4 M\n plymouth                                                      x86_64                                          0.9.4-11.20200615git1e36e30.0.1.el8                                           ol8_appstream                                              127 k\nUpgrading:\n grub2-common                                                  noarch                                          1:2.02-123.0.3.el8                                                            ol8_baseos_latest                                          895 k\n grub2-pc                                                      x86_64                                          1:2.02-123.0.3.el8                                                            ol8_baseos_latest                                           45 k\n grub2-pc-modules                                              noarch                                          1:2.02-123.0.3.el8                                                            ol8_baseos_latest                                          924 k\n grub2-tools                                                   x86_64                                          1:2.02-123.0.3.el8                                                            ol8_baseos_latest                                          2.0 M\n grub2-tools-extra                                             x86_64                                          1:2.02-123.0.3.el8                                                            ol8_baseos_latest                                          1.1 M\n grub2-tools-minimal                                           x86_64                                          1:2.02-123.0.3.el8                                                            ol8_baseos_latest                                          213 k\n grubby                                                        x86_64                                          8.40-42.0.1.el8                                                               ol8_baseos_latest                                           50 k\n tuned                                                         noarch                                          2.18.0-2.0.1.el8                                                              ol8_baseos_latest                                          318 k\nInstalling dependencies:\n grub2-tools-efi                                               x86_64                                          1:2.02-123.0.3.el8                                                            ol8_baseos_latest                                          478 k\n linux-firmware                                                noarch                                          999:20220304-999.13.gitf011ccb4.el8                                           ol8_baseos_latest                                          216 M\n linux-firmware-core                                           noarch                                          999:20220304-999.13.gitf011ccb4.el8                                           ol8_baseos_latest                                          509 k\n plymouth-core-libs                                            x86_64                                          0.9.4-11.20200615git1e36e30.0.1.el8                                           ol8_appstream                                              122 k\n plymouth-scripts                                              x86_64                                          0.9.4-11.20200615git1e36e30.0.1.el8                                           ol8_appstream                                               44 k\nRemoving:\n centos-gpg-keys                                               noarch                                          1:8-2.el8                                                                     @anaconda                                                  3.3 k\n centos-linux-release                                          noarch                                          8.4-1.2105.el8                                                                @anaconda                                                   25 k\n centos-logos                                                  x86_64                                          85.5-1.el8                                                                    @anaconda                                                  698 k\n python3-syspurpose                                            x86_64                                          1.28.13-2.el8                                                                 @anaconda                                                  138 k\n\nTransaction Summary\n==============================================================================================================================================================================================================================================================\nInstall  8 Packages\nUpgrade  8 Packages\nRemove   4 Packages\n\nTotal download size: 333 M\nDownloading Packages:\n(1\/16): linux-firmware-core-20220304-999.13.gitf011ccb4.el8.noarch.rpm                                                                                                                                                         13 MB\/s | 509 kB     00:00\n(2\/16): grub2-tools-efi-2.02-123.0.3.el8.x86_64.rpm                                                                                                                                                                            11 MB\/s | 478 kB     00:00\n(3\/16): plymouth-0.9.4-11.20200615git1e36e30.0.1.el8.x86_64.rpm                                                                                                                                                                21 MB\/s | 127 kB     00:00\n...\n...\n...\nRunning transaction\n  Preparing        :                                                                                                                                                                                                                                      1\/1\n  Running scriptlet: grub2-common-1:2.02-123.0.3.el8.noarch                                                                                                                                                                                               1\/1\n  Upgrading        : grub2-common-1:2.02-123.0.3.el8.noarch                                                                                                                                                                                              1\/28\n  Upgrading        : grub2-tools-minimal-1:2.02-123.0.3.el8.x86_64                                                                                                                                                                                       2\/28\n...\n...\n...\n  Installing       : plymouth-scripts-0.9.4-11.20200615git1e36e30.0.1.el8.x86_64                                                                                                                                                                         7\/28\n  Installing       : plymouth-0.9.4-11.20200615git1e36e30.0.1.el8.x86_64                                                                                                                                                                                 8\/28\n  Installing       : linux-firmware-core-999:20220304-999.13.gitf011ccb4.el8.noarch                                                                                                                                                                      9\/28\n...\n...\n...\n  Verifying        : centos-logos-85.5-1.el8.x86_64                                                                                                                                                                                                     27\/28\n  Verifying        : python3-syspurpose-1.28.13-2.el8.x86_64                                                                                                                                                                                            28\/28\n\nUpgraded:\n  grub2-common-1:2.02-123.0.3.el8.noarch  grub2-pc-1:2.02-123.0.3.el8.x86_64  grub2-pc-modules-1:2.02-123.0.3.el8.noarch  grub2-tools-1:2.02-123.0.3.el8.x86_64  grub2-tools-extra-1:2.02-123.0.3.el8.x86_64  grub2-tools-minimal-1:2.02-123.0.3.el8.x86_64\n  grubby-8.40-42.0.1.el8.x86_64           tuned-2.18.0-2.0.1.el8.noarch\nInstalled:\n  grub2-tools-efi-1:2.02-123.0.3.el8.x86_64         kernel-uek-5.4.17-2136.307.3.6.el8uek.x86_64                linux-firmware-999:20220304-999.13.gitf011ccb4.el8.noarch             linux-firmware-core-999:20220304-999.13.gitf011ccb4.el8.noarch\n  oracle-logos-84.5-1.0.1.el8.x86_64                plymouth-0.9.4-11.20200615git1e36e30.0.1.el8.x86_64         plymouth-core-libs-0.9.4-11.20200615git1e36e30.0.1.el8.x86_64         plymouth-scripts-0.9.4-11.20200615git1e36e30.0.1.el8.x86_64\nRemoved:\n  centos-gpg-keys-1:8-2.el8.noarch                           centos-linux-release-8.4-1.2105.el8.noarch                           centos-logos-85.5-1.el8.x86_64                           python3-syspurpose-1.28.13-2.el8.x86_64\n\nComplete!\n<\/pre>\n\n\n\n<p>We can then see a nice message that the switch was successful and that the system will now sync with the oracle Linux repositories.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1\">Switch successful. Syncing with Oracle Linux repositories.                                                                                                                                                                                 204 kB\/s | 3.9 kB     00:00\n<\/pre>\n\n\n\n<p>Syncing means upgrading all packages to Oracle Linux ol8 release and installing the kernel.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1\">Dependencies resolved.\n==============================================================================================================================================================================================================================================================\n Package                                                                  Architecture                                  Version                                                                Repository                                                Size\n==============================================================================================================================================================================================================================================================\nInstalling:\n kernel                                                                   x86_64                                        4.18.0-372.9.1.el8                                                     ol8_baseos_latest                                        8.0 M\n kernel-core                                                              x86_64                                        4.18.0-372.9.1.el8                                                     ol8_baseos_latest                                         39 M\n kernel-modules                                                           x86_64                                        4.18.0-372.9.1.el8                                                     ol8_baseos_latest                                         32 M\nUpgrading:\n NetworkManager                                                           x86_64                                        1:1.36.0-4.0.1.el8                                                     ol8_baseos_latest                                        2.3 M\n NetworkManager-libnm                                                     x86_64                                        1:1.36.0-4.0.1.el8                                                     ol8_baseos_latest                                        1.8 M\n NetworkManager-team                                                      x86_64                                        1:1.36.0-4.0.1.el8                                                     ol8_baseos_latest                                        153 k\n NetworkManager-tui                                                       x86_64                                        1:1.36.0-4.0.1.el8                                                     ol8_baseos_latest                                        345 k                                                                                                                                                                                 204 kB\/s | 3.9 kB     00:00\n...\n...\n...\nTransaction Summary\n==============================================================================================================================================================================================================================================================\nInstall    6 Packages\nUpgrade  238 Packages\n\nTotal download size: 318 M\nDownloading Packages:\n(1\/414): basesystem-11-5.el8.noarch.rpm                                                                                                                                                                                       342 kB\/s |  10 kB     00:00\n(2\/414): bzip2-1.0.6-26.el8.x86_64.rpm                                                                                                                                                                                         13 MB\/s |  60 kB     00:00\n(3\/414): bzip2-libs-1.0.6-26.el8.x86_64.rpm                                                                                                                                                                                    18 MB\/s |  48 kB     00:00\n(4\/414): acl-2.2.53-1.el8.x86_64.rpm                                                                                                                                                                                          1.9 MB\/s |  81 kB     00:00\n(5\/414): brotli-1.0.6-3.el8.x86_64.rpm                                                                                                                                                                                        7.3 MB\/s | 323 kB     00:00\n(6\/414): cracklib-2.9.6-15.el8.x86_64.rpm                                                                                                                                                                                      17 MB\/s |  93 kB     00:00\n...\n...\n...\n<\/pre>\n\n\n\n<p>This intent to upgrade, reinstall, install or cleanup packages as well as running packages&#8217; scriptlets.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1\">  Upgrading        : filesystem-3.8-6.el8.x86_64                                                                                                                                                                                                        3\/822\n  Upgrading        : tzdata-2022a-1.el8.noarch                                                                                                                                                                                                          4\/822\n  Reinstalling     : fontpackages-filesystem-1.44-22.el8.noarch                                                                                                                                                                                         5\/822\n...\n  Running scriptlet: libproxy-0.4.15-5.2.el8.x86_64                                                                                                                                                                                                   113\/822\n...\n Installing       : libbpf-0.4.0-3.el8.x86_64                                                                                                                                                                                                        117\/822\n...\n Cleanup          : glib2-2.56.4-9.el8.x86_64                                                                                                                                                                                                        695\/822<\/pre>\n\n\n\n<p>As any upgrade, there will be a verification step.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1\">  Verifying        : acl-2.2.53-1.el8.x86_64                                                                                                                                                                                                            1\/822\n  Verifying        : acl-2.2.53-1.el8.x86_64                                                                                                                                                                                                            2\/822\n  Verifying        : basesystem-11-5.el8.noarch                                                                                                                                                                                                         3\/822\n<\/pre>\n\n\n\n<p>At the end of the package installation we can review the packages that were upgraded, installed or reinstalled.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1\">Upgraded:\n  NetworkManager-1:1.36.0-4.0.1.el8.x86_64                   NetworkManager-libnm-1:1.36.0-4.0.1.el8.x86_64                     NetworkManager-team-1:1.36.0-4.0.1.el8.x86_64                      NetworkManager-tui-1:1.36.0-4.0.1.el8.x86_64\n  PackageKit-1.1.12-6.0.1.el8.x86_64                         PackageKit-glib-1.1.12-6.0.1.el8.x86_64                            audit-3.0.7-2.el8.2.x86_64                                         audit-libs-3.0.7-2.el8.2.x86_64\n...\n  virt-what-1.18-13.el8.x86_64                               which-2.21-17.el8.x86_64                                           xfsprogs-5.4.0-1.0.1.el8.x86_64                                    yum-4.7.0-8.0.1.el8.noarch\n  yum-utils-4.0.21-11.0.1.el8.noarch                         zlib-1.2.11-18.el8_5.x86_64\nInstalled:\n  NetworkManager-initscripts-updown-1:1.36.0-4.0.1.el8.noarch   kernel-4.18.0-372.9.1.el8.x86_64   kernel-core-4.18.0-372.9.1.el8.x86_64   kernel-modules-4.18.0-372.9.1.el8.x86_64   libbpf-0.4.0-3.el8.x86_64   python3-netifaces-0.10.6-4.el8.x86_64\nReinstalled:\n  abattis-cantarell-fonts-0.0.25-6.el8.noarch          acl-2.2.53-1.el8.x86_64                            basesystem-11-5.el8.noarch                     brotli-1.0.6-3.el8.x86_64                           bzip2-1.0.6-26.el8.x86_64\n...              xkeyboard-config-2.28-1.el8.noarch             xz-5.2.4-3.el8.x86_64                               xz-libs-5.2.4-3.el8.x86_64\n\nComplete!\n<\/pre>\n\n\n\n<p>At the end of the script execution we can see the output that the sync is successful.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1\">Sync successful.<\/pre>\n\n\n\n<p>The system will update the boot loader, generate the new grub configuration file and switch the default boot kernel to the Oracle Linux kernel (UEK).<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1\">Updating the GRUB2 bootloader.\nGenerating grub configuration file ...\ndone\nSwitching default boot kernel to the UEK.\nRemoving yum cache\n<\/pre>\n\n\n\n<p>The option -V has created four log files for listing and verifying the packages before and after the migration.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1\">Creating a list of RPMs installed after the switch\nVerifying RPMs installed after the switch against RPM database\nReview the output of following files:\n\/var\/tmp\/centosmigr-rpms-list-before.log\n\/var\/tmp\/centosmigr-rpms-verified-before.log\n\/var\/tmp\/centosmigr-rpms-list-after.log\n\/var\/tmp\/centosmigr-rpms-verified-after.log\n<\/pre>\n\n\n\n<p>And finally the script will end with an output confirming the switch has been successful completed. A reboot is now more than recommended.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1\">Switch complete.\nOracle recommends rebooting this system.\n<\/pre>\n\n\n\n<h3>Checking system after switching to Oracle Linux<\/h3>\n\n\n\n<p>Let&#8217;s check the new Linux version and confirm we are running Oracle Linux.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1,8]\">[centos@centosmigr ~]$ ls -l \/etc\/*release*\n-rw-r--r--. 1 root root  32 May 13 01:14 \/etc\/oracle-release\n-rw-r--r--. 1 root root 479 May 13 01:14 \/etc\/os-release\n-rw-r--r--. 1 root root  45 May 13 01:14 \/etc\/redhat-release\nlrwxrwxrwx. 1 root root  14 May 13 01:14 \/etc\/system-release -&gt; oracle-release\n-rw-r--r--. 1 root root  31 May 13 01:14 \/etc\/system-release-cpe\n\n[centos@centosmigr ~]$ cat \/etc\/oracle-release\nOracle Linux Server release 8.6\n[centos@centosmigr ~]$\n<\/pre>\n\n\n\n<p>Let&#8217;s check the running kernel.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">[centos@centosmigr ~]$ uname -a\nLinux centosmigr 4.18.0-305.3.1.el8.x86_64 #1 SMP Tue Jun 1 16:14:33 UTC 2021 x86_64 x86_64 x86_64 GNU\/Linux\n<\/pre>\n\n\n\n<p>This is the old one, we need to reboot the server first.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">[centos@centosmigr ~]$ sudo systemctl reboot\nConnection to 172.21.9.153 closed by remote host.\nConnection to 172.21.9.153 closed.\n<\/pre>\n\n\n\n<p>After reboot, the system will be started on the new Oracle Linux kernel.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1,4]\">[centos@centosmigr ~]$ uptime\n 11:23:08 up 1 min,  1 user,  load average: 1.64, 0.53, 0.19\n\n[centos@centosmigr ~]$ uname -a\nLinux centosmigr 5.4.17-2136.307.3.6.el8uek.x86_64 #2 SMP Wed Jun 1 13:54:41 PDT 2022 x86_64 x86_64 x86_64 GNU\/Linux\n<\/pre>\n\n\n\n<p>Let&#8217;s check the boot loader folder.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">[centos@centosmigr ~]$ ls -ltrh \/boot\ntotal 516M\n-rw-------. 1 root root 4.0M Jun  1  2021 System.map-4.18.0-305.3.1.el8.x86_64\n-rw-r--r--. 1 root root 188K Jun  1  2021 config-4.18.0-305.3.1.el8.x86_64\n-rwxr-xr-x. 1 root root 9.6M Jun  1  2021 vmlinuz-4.18.0-305.3.1.el8.x86_64\ndrwxr-xr-x. 3 root root   17 Jun  2  2021 efi\ndrwxr-xr-x. 3 root root   21 Jun  2  2021 loader\n-rwxr-xr-x. 1 root root 9.6M Jun  2  2021 vmlinuz-0-rescue-40ec35b37a254049be3d85f9173b39a1\n-rw-------. 1 root root  62M Jun  2  2021 initramfs-0-rescue-40ec35b37a254049be3d85f9173b39a1.img\ndrwxr-xr-x. 2 root root   39 Jun  2  2021 grub\n-rw-------. 1 root root 4.2M May 12 03:21 System.map-4.18.0-372.9.1.el8.x86_64\n-rw-r--r--. 1 root root 192K May 12 03:21 config-4.18.0-372.9.1.el8.x86_64\n-rwxr-xr-x. 1 root root  10M May 12 03:21 vmlinuz-4.18.0-372.9.1.el8.x86_64\n-rw-------. 1 root root 4.3M Jun  1 21:00 System.map-5.4.17-2136.307.3.6.el8uek.x86_64\n-rw-r--r--. 1 root root 213K Jun  1 21:00 config-5.4.17-2136.307.3.6.el8uek.x86_64\n-rwxr-xr-x. 1 root root  10M Jun  1 21:00 vmlinuz-5.4.17-2136.307.3.6.el8uek.x86_64\nlrwxrwxrwx. 1 root root   57 Jun  8 08:35 symvers-5.4.17-2136.307.3.6.el8uek.x86_64.gz -&gt; \/lib\/modules\/5.4.17-2136.307.3.6.el8uek.x86_64\/symvers.gz\n-rw-------. 1 root root  86M Jun  8 08:36 initramfs-5.4.17-2136.307.3.6.el8uek.x86_64.img\n-rwxr-xr-x. 1 root root  10M Jun  8 08:36 vmlinuz-0-rescue-ec2f03aecd97c5f99095ff2f3f63a155\n-rw-------. 1 root root  86M Jun  8 08:37 initramfs-0-rescue-ec2f03aecd97c5f99095ff2f3f63a155.img\n-rw-------. 1 root root  27M Jun  8 08:42 initramfs-4.18.0-305.3.1.el8.x86_64kdump.img\nlrwxrwxrwx. 1 root root   49 Jun  8 08:42 symvers-4.18.0-372.9.1.el8.x86_64.gz -&gt; \/lib\/modules\/4.18.0-372.9.1.el8.x86_64\/symvers.gz\n-rw-------. 1 root root  87M Jun  8 08:44 initramfs-4.18.0-372.9.1.el8.x86_64.img\n-rw-------. 1 root root  82M Jun  8 08:45 initramfs-4.18.0-305.3.1.el8.x86_64.img\n-rw-------. 1 root root  27M Jun  8 11:22 initramfs-5.4.17-2136.307.3.6.el8uek.x86_64kdump.img\ndrwx------. 4 root root   83 Jun  8 11:25 grub2\n<\/pre>\n\n\n\n<p>And we can confirm that there is no CentOS base package installed on the system any more.<\/p>\n\n\n\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">[centos@centosmigr ~]$ rpm -qa | grep -i centos\n[centos@centosmigr ~]$\n<\/pre>\n\n\n\n<h3>Conclusion<\/h3>\n\n\n\n<p>Switching CentOS 8 to Oracle Linux 8 was quite fast and simple. Of course, it might be more complicated on a production system having several other third party packages and softwares installed. Those package might need to certainly be reinstalled. The packages that install 3rd party kernel modules will for sure not work any more after switching, and would need to be reinstalled. Also the script only enables base repositories needed to switch to Oracle Linux. Before upgrading some packages, some additional repositories might need to be enabled first.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As you might be aware, CentOS 8 is end of life since the 31st of December 2021. If you are still using and running CentOS 8, you might want to migrate to some alternative distributions in order to keep a Red Hat compatibility. Those alternative distributions might be chosen between : Rocky Linux AlmaLinux Red [&hellip;]<\/p>\n","protected":false},"author":48,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[59],"tags":[2560,2562,2559,2561],"type_dbi":[],"class_list":["post-17268","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-centos-2","tag-migration-2","tag-oracle-2","tag-oracle-linux-2"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Migrating CentOS 8 to Oracle linux OL8 - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Migrating CentOS 8 to Oracle linux OL8\" \/>\n<meta property=\"og:description\" content=\"As you might be aware, CentOS 8 is end of life since the 31st of December 2021. If you are still using and running CentOS 8, you might want to migrate to some alternative distributions in order to keep a Red Hat compatibility. Those alternative distributions might be chosen between : Rocky Linux AlmaLinux Red [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-13T07:14:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-21T13:59:41+00:00\" \/>\n<meta name=\"author\" content=\"Marc Wagner\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Marc Wagner\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/\"},\"author\":{\"name\":\"Marc Wagner\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/225d9884b8467ead9a872823acb14628\"},\"headline\":\"Migrating CentOS 8 to Oracle linux OL8\",\"datePublished\":\"2022-06-13T07:14:06+00:00\",\"dateModified\":\"2022-06-21T13:59:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/\"},\"wordCount\":737,\"commentCount\":0,\"keywords\":[\"centos\",\"migration\",\"oracle\",\"oracle linux\"],\"articleSection\":[\"Oracle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/\",\"name\":\"Migrating CentOS 8 to Oracle linux OL8 - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2022-06-13T07:14:06+00:00\",\"dateModified\":\"2022-06-21T13:59:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/225d9884b8467ead9a872823acb14628\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Migrating CentOS 8 to Oracle linux OL8\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/225d9884b8467ead9a872823acb14628\",\"name\":\"Marc Wagner\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/a873cc6e7fbdbbcbdbcaf5dbded14ad9a77b2ec2c3e03b4d724ed33d35d5f328?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a873cc6e7fbdbbcbdbcaf5dbded14ad9a77b2ec2c3e03b4d724ed33d35d5f328?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a873cc6e7fbdbbcbdbcaf5dbded14ad9a77b2ec2c3e03b4d724ed33d35d5f328?s=96&d=mm&r=g\",\"caption\":\"Marc Wagner\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/marc-wagner\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Migrating CentOS 8 to Oracle linux OL8 - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/","og_locale":"en_US","og_type":"article","og_title":"Migrating CentOS 8 to Oracle linux OL8","og_description":"As you might be aware, CentOS 8 is end of life since the 31st of December 2021. If you are still using and running CentOS 8, you might want to migrate to some alternative distributions in order to keep a Red Hat compatibility. Those alternative distributions might be chosen between : Rocky Linux AlmaLinux Red [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/","og_site_name":"dbi Blog","article_published_time":"2022-06-13T07:14:06+00:00","article_modified_time":"2022-06-21T13:59:41+00:00","author":"Marc Wagner","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Marc Wagner","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/"},"author":{"name":"Marc Wagner","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/225d9884b8467ead9a872823acb14628"},"headline":"Migrating CentOS 8 to Oracle linux OL8","datePublished":"2022-06-13T07:14:06+00:00","dateModified":"2022-06-21T13:59:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/"},"wordCount":737,"commentCount":0,"keywords":["centos","migration","oracle","oracle linux"],"articleSection":["Oracle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/","url":"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/","name":"Migrating CentOS 8 to Oracle linux OL8 - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2022-06-13T07:14:06+00:00","dateModified":"2022-06-21T13:59:41+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/225d9884b8467ead9a872823acb14628"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/migrating-centos-8-to-oracle-linux-ol8\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Migrating CentOS 8 to Oracle linux OL8"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/225d9884b8467ead9a872823acb14628","name":"Marc Wagner","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a873cc6e7fbdbbcbdbcaf5dbded14ad9a77b2ec2c3e03b4d724ed33d35d5f328?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a873cc6e7fbdbbcbdbcaf5dbded14ad9a77b2ec2c3e03b4d724ed33d35d5f328?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a873cc6e7fbdbbcbdbcaf5dbded14ad9a77b2ec2c3e03b4d724ed33d35d5f328?s=96&d=mm&r=g","caption":"Marc Wagner"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/marc-wagner\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/17268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/48"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=17268"}],"version-history":[{"count":71,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/17268\/revisions"}],"predecessor-version":[{"id":17476,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/17268\/revisions\/17476"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=17268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=17268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=17268"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=17268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}