


{"id":360,"date":"2024-02-06T02:12:19","date_gmt":"2024-02-06T02:12:19","guid":{"rendered":"https:\/\/oracle.human-design.jp\/en\/?p=360"},"modified":"2024-02-27T03:05:36","modified_gmt":"2024-02-27T03:05:36","slug":"20220728","status":"publish","type":"post","link":"https:\/\/oracle.human-design.jp\/en\/knowledge-base\/20220728\/","title":{"rendered":"3.Use Oracle Linux and Discover the Differences"},"content":{"rendered":"\n<p>Previously, we explained what a RHEL-compatible distribution is and the features of Oracle Linux. This time, we will actually operate Oracle Linux to explain the differences with RHEL and CentOS.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">1. How to try Oracle Linux<\/h2>\n\n\n\n<p>You can easily try Oracle Linux in the following ways. This time, we will mainly use method 1, and partially use method 2.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install Oracle Linux on VirtualBox or similar.<\/li>\n\n\n\n<li>Use the Oracle Cloud Infrastructure Always Free<\/li>\n\n\n\n<li>Use an Oracle Linux image in AWS or Azure<\/li>\n<\/ol>\n\n\n\n<p>In addition, Oracle Linux media can be obtained free of charge from the following sites:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/edelivery.oracle.com\/osdc\/faces\/Home.jspx\" target=\"_blank\" rel=\"noreferrer noopener\">Oracle Software Delivery Cloud<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/yum.oracle.com\/oracle-linux-isos.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/yum.oracle.com\/oracle-linux-isos.html<\/a><\/li>\n<\/ul>\n\n\n\n<p>For installation instructions, see the &#8220;Installing Oracle Linux 8 Oracle Linux&#8221; manual. It is almost the same as RHEL, CentOS Stream and AlmaLinux. In addition, we recommend <a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/oracle-linux\/home.htm\" target=\"_blank\" rel=\"noreferrer noopener\">\u201cOCI Documentation:Oracle Linux\u201d<\/a> for Oracle Cloud Infrastructure.<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">2. Discover the differences of Oracle Linux<\/h2>\n\n\n\n<p>Let&#8217;s take a look at Oracle Linux in action. This time we will use Oracle Linux 8 Update 6. Even if the minor version is different, it is almost the same, so there is no need to worry about this point. Oracle Linux 7 is also basically the same. This time, we will use the following Linux distributions for comparison:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Red Hat Enterprise Linux 8<\/li>\n\n\n\n<li>CentOS Stream<\/li>\n<\/ul>\n\n\n\n<p>CentOS Stream is not a pure RHEL-compatible distribution. Therefore, AlmaLinux and MIRACLE LINUX are more appropriate for comparison, but this time we will use CentOS Stream, which is easier to get used to.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2.1. Check the distribution type<\/h3>\n\n\n\n<p>Check the Linux distribution type. Linux has a file called <strong>\/etc\/*-release<\/strong>, which allows you to determine the distribution. If you check, there are four files called <strong>\/etc\/*-release<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ls -l \/etc\/*release\n-rw-r--r--. 1 root root  32 May 13 10:14 \/etc\/oracle-release\n-rw-r--r--. 1 root root 479 May 13 10:14 \/etc\/os-release\n-rw-r--r--. 1 root root  45 May 13 10:14 \/etc\/redhat-release\nlrwxrwxrwx. 1 root root  14 May 13 10:14 \/etc\/system-release -&gt; oracle-release<\/code><\/pre>\n\n\n\n<p>If you look at the contents of the file, you can see that it is Oracle Linux 8.6.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cat \/etc\/oracle-release\nOracle Linux Server release 8.6<\/code><\/pre>\n\n\n\n<p>However, you do not need to worry about the minor version after the decimal place in Linux. This is because, depending on the repository settings, running <strong>yum update<\/strong> will cause the minor version to go up on its own.<\/p>\n\n\n\n<p>What is interesting is the contents of \/etc\/redhat-release. It is a Red Hat Enterprise Linux release, not Oracle Linux.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cat \/etc\/redhat-release\nRed Hat Enterprise Linux release 8.6 (Ootpa)\n\n<\/code><\/pre>\n\n\n\n<p>But what about CentOS Stream? <strong>\/etc\/redhat-release<\/strong> is a symbolic link to <strong>\/etc\/centos-release<\/strong>. Of course, the content is the same.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ls -l \/etc\/*release\n-rw-r--r--. 1 root root 24 Sep 14  2021 \/etc\/centos-release\nlrwxrwxrwx. 1 root root 21 Sep 14  2021 \/etc\/os-release -&gt; ..\/usr\/lib\/os-release\nlrwxrwxrwx. 1 root root 14 Sep 14  2021 \/etc\/redhat-release -&gt; centos-release\nlrwxrwxrwx. 1 root root 14 Sep 14  2021 \/etc\/system-release -&gt; centos-release\n\n$ cat \/etc\/centos-release\nCentOS Stream release 8\n\n$ cat \/etc\/redhat-release\u3000\u2605It has the same content\nCentOS Stream release 8\n\n<\/code><\/pre>\n\n\n\n<p>It seems that this specification is a countermeasure for the program that checks the type of distribution. Commercial software and drivers provided by hardware vendors often use <strong>\/etc\/*-release<\/strong> to determine the type and version of the distribution. This is probably because they expect to bypass the check by leaving the original <strong>\/etc\/redhat-release<\/strong>.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2.2. Check the kernel<\/h3>\n\n\n\n<p>Check the kernel. Since the end is <strong>el8uek<\/strong>, it is not a RHEL-compatible kernel, but a unique Unbreakable Enterprise Kernel (UEK) of Oracle Linux.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ uname -r\n5.4.17-2136.307.3.1.el8uek.x86_64<\/code><\/pre>\n\n\n\n<p>If you look at the kernel that is installed, you can see that in addition to the UEK, the RHEL-compatible kernel (RHCK: Red Hat Compatible Kernel) is also installed.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ rpm -qa | grep kernel\nkernel-uek-5.4.17-2136.307.3.1.el8uek.x86_64 \u2605UEK\nkernel-modules-4.18.0-372.9.1.el8.x86_64\nkernel-tools-libs-4.18.0-372.9.1.el8.x86_64\nkernel-4.18.0-372.9.1.el8.x86_64             \u2605RHEL compatible kernel\nkernel-tools-4.18.0-372.9.1.el8.x86_64\nkernel-core-4.18.0-372.9.1.el8.x86_64\nkernel-headers-4.18.0-372.9.1.el8.x86_64<\/code><\/pre>\n\n\n\n<p>With UEK and RHCK, you will see that the version number is very different.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><strong>UEK<\/strong><\/strong>\uff1akernel-uek-5.4<\/li>\n\n\n\n<li><strong><strong>RHCK<\/strong><\/strong>\uff1akernel-4.18<\/li>\n<\/ul>\n\n\n\n<p>The reason for the significant difference in versions is the difference in the Linux kernel on which they are based. UEK is based on the more upstream Linux kernel 5.4, with customizations specific to Oracle Linux and application compatibility with RHCK.<\/p>\n\n\n\n<p>UEK and RHCK are application level compatible, so they are usually fine as they are. You may want to consider switching when the software, device drivers, etc. you are using do not support UEK.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2.3. Discover the RHEL compatible kernel<\/h3>\n\n\n\n<p>The following table shows the relationship between the RHEL-compatible distribution and the kernel version. The &#8220;version number&#8221; does not change if it is the same major version. What changes is the release number following the kernel version.<\/p>\n\n\n\n<figure id=\"table05\" class=\"wp-block-table\"><table><thead><tr><th>Distribution<\/th><th>kernel version<\/th><\/tr><\/thead><tbody><tr><td>RHEL8-based<\/td><td>kernel-4.18.0<\/td><\/tr><tr><td>RHEL7-based<\/td><td>kernel-3.10.0<\/td><\/tr><tr><td>RHEL6-based<\/td><td>kernel-2.6.32<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The following figure shows the kernel package naming convention. If it is the same major version, the &#8220;version number&#8221; will remain the same, and the &#8220;release number&#8221; will increase. For the RHEL-compatible kernel in Oracle Linux, the same kernel as RHEL is released up to the release number.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"242\" src=\"https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/en_LinuxColumn02-01-1024x242.jpg\" alt=\"\" class=\"wp-image-364\" srcset=\"https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/en_LinuxColumn02-01-1024x242.jpg 1024w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/en_LinuxColumn02-01-300x71.jpg 300w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/en_LinuxColumn02-01-768x181.jpg 768w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/en_LinuxColumn02-01-1536x362.jpg 1536w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/en_LinuxColumn02-01.jpg 1543w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Let&#8217;s take a look at the changelog (change history) of the RHEL-compatible kernel for reference. Version <strong>4.18.0-372.9.1.<\/strong>el8 seems to apply a few compatibility patches, such as keys, without changing. If you are interested, please see the Source Package (SRPM).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># rpm -q --changelog kernel-4.18.0-372.9.1.el8.x86_64|head\n* Wed May 11 2022 Natalya Naumova &lt;natalya.naumova@oracle.com&gt; &#91;4.18.0-372.9.1.el8.OL8]\n- Update Oracle Linux certificates (Kevin Lyons)\n- Disable signing for aarch64 (Ilya Okomin)\n- Oracle Linux RHCK Module Signing Key was added to the kernel trusted keys list (olkmod_signing_key.pem) &#91;Orabug: 29539237]\n- Update x509.genkey &#91;Orabug: 24817676]\n- Conflict with shim-ia32 and shim-x64 &lt;= 15-11.0.5.el8\n\n* Fri Apr 15 2022 Augusto Caringi &lt;acaringi@redhat.com&gt; &#91;4.18.0-372.9.1.el8]\n- scsi: qedi: Fix failed disconnect handling (Chris Leech) &#91;2071519]\n- scsi: iscsi: Fix unbound endpoint error handling (Chris Leech) &#91;2071519]<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2.4. Check the Yum repository<\/h3>\n\n\n\n<p>Check the Yum repository. Unlike RHEL, with Oracle Linux you can get update packages without a support contract (RH is a subscription contract). However, if you sign a support contract, you can also use packages for support contract users such as Ksplice.<\/p>\n\n\n\n<p>By default, the following repositories are enabled. In addition, from Oracle Linux 8, it has changed from <strong>yum<\/strong> to <strong>dnf<\/strong>, but because it is compatible, <strong>yum<\/strong> is used intentionally.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ yum repolist\nrepo id           repo name\nol8_UEKR6         Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 8 (x86_64)\nol8_appstream     Oracle Linux 8 Application Stream (x86_64)\nol8_baseos_latest Oracle Linux 8 BaseOS Latest (x86_64)<\/code><\/pre>\n\n\n\n<p>The content of each repository is as follows:<\/p>\n\n\n\n<figure id=\"table05\" class=\"wp-block-table\"><table><thead><tr><th>Repository<\/th><th>Explanation<\/th><\/tr><\/thead><tbody><tr><td>ol8_baseos_latest<\/td><td>Core packages for OS<\/td><\/tr><tr><td>ol8_appstream<\/td><td>Applications, development languages, etc.<\/td><\/tr><tr><td>ol8_UEKR6<\/td><td>UEK R6<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Oracle Linux 8 for Oracle Cloud Infrastructure is configured as follows. OCI-specific and Ksplice repositories are enabled.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nol8_UEKR6         Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 8 (x86_64)\nol8_addons        Oracle Linux 8 Addons (x86_64)\nol8_appstream     Oracle Linux 8 Application Stream (x86_64)\nol8_baseos_latest Oracle Linux 8 BaseOS Latest (x86_64)\nol8_ksplice       Ksplice for Oracle Linux 8 (x86_64)\nol8_oci           Oracle Linux 8 OCI Packages (x86_64)\nol8_oci_included  Oracle Software for OCI users on Oracle Linux 8 (x86_64)<\/code><\/pre>\n\n\n\n<p>Let\u2019s check with other distributions as well. The number of repositories enabled by default is different, but the usual <strong>baseos<\/strong> and <strong>appstream<\/strong> are the same.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">RHEL8<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>repo id                          repo name\nrhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)\nrhel-8-for-x86_64-baseos-rpms    Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">CentOS Stream<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>repo id             repo name\nappstream           CentOS Stream 8 - AppStream\nbaseos              CentOS Stream 8 - BaseOS\nepel                Extra Packages for Enterprise Linux 8 - x86_64\nepel-modular        Extra Packages for Enterprise Linux Modular 8 - x86_64\nextras              CentOS Stream 8 - Extras\nextras-common       CentOS Stream 8 - Extras common packages<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Repository ID differences between Oracle Linux and other distributions<\/h4>\n\n\n\n<figure id=\"table05\" class=\"wp-block-table\"><table><thead><tr><th>Oracle Linux<\/th><th>RHEL<\/th><th>CentOS Stream<\/th><\/tr><\/thead><tbody><tr><td>ol8_baseos_latest<\/td><td>rhel-8-for-x86_64-baseos-rpms<\/td><td>baseos<\/td><\/tr><tr><td>ol8_appstream<\/td><td>rhel-8-for-x86_64-appstream-rpms<\/td><td>appstream<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The following is displayed up to the repository that is disabled:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ yum repolist all\nrepo id                    repo name                                    status\nol8_UEKR6                  Latest Unbreakable Enterprise Kernel Release enabled\nol8_UEKR6_RDMA             Oracle Linux 8 UEK6 RDMA (x86_64)            disabled\nol8_addons                 Oracle Linux 8 Addons (x86_64)               disabled\nol8_appstream              Oracle Linux 8 Application Stream (x86_64)   enabled\nol8_baseos_latest          Oracle Linux 8 BaseOS Latest (x86_64)        enabled\nol8_codeready_builder      Oracle Linux 8 CodeReady Builder (x86_64) -  disabled\nol8_distro_builder         Oracle Linux 8 Distro Builder (x86_64) - Uns disabled\nol8_kvm_appstream          Oracle Linux 8 KVM Application Stream (x86_6 disabled\nol8_u0_baseos_base         Oracle Linux 8 BaseOS GA (x86_64)            disabled\nol8_u1_baseos_base         Oracle Linux 8.1 BaseOS (x86_64)             disabled\nol8_u2_baseos_base         Oracle Linux 8.2 BaseOS (x86_64)             disabled\nol8_u3_baseos_base         Oracle Linux 8.3 BaseOS (x86_64)             disabled\nol8_u4_baseos_base         Oracle Linux 8.4 BaseOS (x86_64)             disabled\nol8_u4_security_validation Oracle Linux 8 Update 4 (x86_64) Security Va disabled\nol8_u5_baseos_base         Oracle Linux 8.5 BaseOS (x86_64)             disabled\nol8_u6_baseos_base         Oracle Linux 8.6 BaseOS (x86_64)             disabled<\/code><\/pre>\n\n\n\n<p>In addition, some repositories are not installed by default. The yum list available command displays a list of packages that contain repository definitions. For example, <strong>oracle-epel-release-el8<\/strong> is an &#8220;EPEL&#8221; repository commonly used in RHEL-based distributions. Simply run yum install <strong>oracle-epel-release-el8<\/strong> to make the EPEL package available.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ yum list available *release-el8.x86_64\nAvailable Packages\nmysql-release-el8.x86_64                         1.0-3.el8     ol8_baseos_latest\noracle-epel-release-el8.x86_64                   1.0-5.el8     ol8_baseos_latest\noracle-gluster-release-el8.x86_64                1.0-2.el8     ol8_baseos_latest\noracle-instantclient-release-el8.x86_64          1.0-1.el8     ol8_baseos_latest\noracle-linux-manager-client-release-el8.x86_64   1.0-1.el8     ol8_baseos_latest\noracle-olcne-release-el8.x86_64                  1.0-6.el8     ol8_baseos_latest\noracle-ovirt-release-el8.x86_64                  1.0-1.0.3.el8 ol8_baseos_latest\noracle-release-el8.x86_64                        1.0-1.el8     ol8_baseos_latest\noracle-software-release-el8.x86_64               1.0-1.el8     ol8_baseos_latest\noracle-spacewalk-client-release-el8.x86_64       1.0-1.el8     ol8_baseos_latest\noraclelinux-automation-manager-release-el8.x86_64\n                                                 1.0-1.el8     ol8_baseos_latest\noraclelinux-developer-release-el8.x86_64         1.0-7.el8     ol8_baseos_latest\noraclelinux-release-el8.x86_64                   1.0-24.el8    ol8_baseos_latest<\/code><\/pre>\n\n\n\n<p>Learn more about the Yum repository on Oracle Linux at <a href=\"https:\/\/yum.oracle.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/yum.oracle.com\/<\/a>.<\/p>\n\n\n\n<p>In addition to being able to download update packages, we recommend that you take a look at it as it contains a variety of information.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/LinuxColumn02-02-1024x618.png\" alt=\"\" class=\"wp-image-365\" srcset=\"https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/LinuxColumn02-02-1024x618.png 1024w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/LinuxColumn02-02-300x181.png 300w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/LinuxColumn02-02-768x464.png 768w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/LinuxColumn02-02.png 1473w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2.5. Check Oracle Linux specific packages<\/h3>\n\n\n\n<p>Some packages are only provided by Oracle Linux, but the default installation is basically the same. For your reference, here are the packages named oracle. We will leave out the details, but they are the parts that must be changed, such as the logos, licenses, repositories, GPG keys, etc.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># rpm -qa | grep oracle\noraclelinux-release-8.6-1.0.5.el8.x86_64\noraclelinux-release-el8-1.0-23.el8.x86_64\noracle-logos-84.5-1.0.1.el8.x86_64<\/code><\/pre>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">3. Change the kernel to RHCK<\/h2>\n\n\n\n<p>For your reference, here&#8217;s how to change the default kernel UEK to RHCK. Use <strong>grubby<\/strong> for changes.<\/p>\n\n\n\n<p>1. Check the default kernel. You can see that it is \/<strong>boot\/vmlinuz-5.4.17-2136.307.3.1.el8uek.x86_64<\/strong> with index number &#8220;0&#8221;.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># grubby --default-index\n0\n\n# grubby --default-kernel\n\/boot\/vmlinuz-5.4.17-2136.307.3.1.el8uek.x86_64<\/code><\/pre>\n\n\n\n<p>2. Next, it displays a list of the installed kernels. <strong>index = 1<\/strong> is RHCK.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># grubby --info=ALL | grep -A 1 ^index\nindex=0\nkernel=\"\/boot\/vmlinuz-5.4.17-2136.307.3.1.el8uek.x86_64\"\n--\nindex=1\nkernel=\"\/boot\/vmlinuz-4.18.0-372.9.1.el8.x86_64\"\n--\nindex=2\nkernel=\"\/boot\/vmlinuz-0-rescue-5b64998859b34f7884afea6dd27a9390\"<\/code><\/pre>\n\n\n\n<p>3. Changes can be made by specifying the kernel path or by specifying the index number. You can use either, but you should specify the kernel path to prevent errors.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u2605Specify the kernel path\n# grubby --set-default=\/boot\/vmlinuz-4.18.0-372.9.1.el8.x86_64\n\u2605Specify the index number\n# grubby --set-default-index=1 <\/code><\/pre>\n\n\n\n<p>4. Ensure that the default kernel has been changed to RHCK.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># grubby --default-kernel\n\/boot\/vmlinuz-4.18.0-372.9.1.el8.x86_64<\/code><\/pre>\n\n\n\n<p>5. Next, change the default kernel to an RH-compatible kernel using <strong>\/etc\/sysconfig\/kernel<\/strong>. If you don&#8217;t fix this, you will return to UEK when you update yum.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">\/etc\/sysconfig\/kernel contents<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code># UPDATEDEFAULT specifies if kernel-install should make\n# new kernels the default\nUPDATEDEFAULT=yes\n\n# DEFAULTKERNEL specifies the default kernel package type\nDEFAULTKERNEL=kernel\n#DEFAULTKERNEL=kernel-uek \u2605Comment out and add the line above<\/code><\/pre>\n\n\n\n<p>You can change it manually, but you can also change it with the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># sed -i -e 's\/DEFAULTKERNEL=kernel-uek\/DEFAULTKERNEL=kernel\/' \/etc\/sysconfig\/kernel<\/code><\/pre>\n\n\n\n<p>6. Restart to enable the modified kernel.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># shutdown -r<\/code><\/pre>\n\n\n\n<p>7. When you log in after rebooting, it has changed to an RH-compatible kernel. This completes the procedure.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># uname -r\n4.18.0-372.9.1.el8.x86_64<\/code><\/pre>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">4. Conclusion<\/h2>\n\n\n\n<p>In this article, we have focused on the differences between CentOS and RHEL. In fact, they are almost the same in normal use. If you are told that the installed environment is CentOS, you may not notice it.<\/p>\n\n\n\n<p>However, even though the basic parts are the same as an RHEL-compatible distribution, Oracle Linux has a variety of peripheral tools for enterprises. It also has unique features like Ksplice that allow you to apply patches without rebooting. Now that CentOS has changed to CentOS Stream, Oracle Linux is one of the most trusted RHEL-compatible distributions. Why not give it a try?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Previously, we explained what a RHEL-compatible distribution is and the features of Oracle Linux. This time, w [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[7],"class_list":["post-360","post","type-post","status-publish","format-standard","hentry","category-knowledge-base","tag-linux"],"_links":{"self":[{"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/posts\/360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/comments?post=360"}],"version-history":[{"count":10,"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/posts\/360\/revisions"}],"predecessor-version":[{"id":559,"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/posts\/360\/revisions\/559"}],"wp:attachment":[{"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/media?parent=360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/categories?post=360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/tags?post=360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}