Bildiğiniz gibi Centos8’in 2029 sonuna kadar olan destek tarihi 2021 yılına çekildi. Aslında Centos projesi Red Hat tarafından durduruldu da denebilir. Centos bundan sonra hayatına Centos Stream olarak çok da kararlı olmayan bir dağıtım olarak devam edecek. Bu karar mevcuttaki Centos kullanıcılarını hatta özellikle Cloud provider’ları oldukça üzdü. Çünkü Centos free ve open-source linux dağıtımlarının arasında oldukça tutarlı bir yapıya sahipti.
CentOS kurucusu ise bu karardan hemen sonra Rocky Linux dağıtımını duyurdu. Muhtemelen bu dağıtımı ileride çokça duyacağız.
Centos’un bu kararından sonra Oracle ışık hızında conversion scripti yayınladı. Siz de aşağıdaki adımları takip ederek mevcut Centos’unuzu OEL kernel’ine çevirebilirsiniz.
Not: İşleme başlamadan önce production ortamınızın işletim sistemi yedeğini almanızı öneririm.
[root@localhost ~]# uname -a
Linux localhost.localdomain 4.18.0-240.1.1.el8_3.x86_64 #1 SMP Thu Nov 19 17:20:08 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 8.3.2011
[root@localhost ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
[root@localhost ~]# wget https://raw.githubusercontent.com/oracle/centos2ol/main/centos2ol.sh
--2020-12-22 09:11:02-- https://raw.githubusercontent.com/oracle/centos2ol/main/centos2ol.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20802 (20K) [text/plain]
Saving to: ‘centos2ol.sh’
centos2ol.sh 100%[=====================================================================================================================================>] 20.31K --.-KB/s in 0.007s
2020-12-22 09:11:03 (3.02 MB/s) - ‘centos2ol.sh’ saved [20802/20802]
[root@localhost ~]# chmod +x centos2ol.sh
[root@localhost ~]# ./centos2ol.sh
Checking for required packages...
Checking your distribution...
Checking for yum lock...
Checking for required python packages...
Identifying dnf modules that are enabled
Finding your repository directory...
Learning which repositories are enabled...
Repositories enabled before update include:
appstream
baseos
extras
pgdg-common
pgdg13
pgdg12
pgdg11
pgdg10
pgdg96
pgdg95
Looking for yumdownloader...
Backing up and removing old repository files...
Downloading Oracle Linux release package...
Oracle Linux 8 BaseOS Latest (x86_64) 1.3 MB/s | 28 MB 00:21
Oracle Linux 8 Application Stream (x86_64) 1.4 MB/s | 22 MB 00:16
Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 8 (x86_64) 1.4 MB/s | 12 MB 00:08
Last metadata expiration check: 0:00:02 ago on Tue 22 Dec 2020 09:13:28 AM UTC.
(1/3): redhat-release-8.3-1.0.0.1.el8.x86_64.rpm 25 kB/s | 17 kB 00:00
(2/3): oraclelinux-release-el8-1.0-14.el8.x86_64.rpm 24 kB/s | 18 kB 00:00
(3/3): oraclelinux-release-8.3-1.0.4.el8.x86_64.rpm 67 kB/s | 71 kB 00:01
.
.
.
Dependencies resolved.
=========================================================================================================================================================================================================================================
Package Architecture Version Repository Size
=========================================================================================================================================================================================================================================
Reinstalling:
kernel-uek x86_64 5.4.17-2036.101.2.el8uek ol8_UEKR6 61 M
Transaction Summary
=========================================================================================================================================================================================================================================
Total download size: 61 M
Installed size: 85 M
Downloading Packages:
kernel-uek-5.4.17-2036.101.2.el8uek.x86_64.rpm 2.3 MB/s | 61 MB 00:26
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 2.3 MB/s | 61 MB 00:26
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: kernel-uek-5.4.17-2036.101.2.el8uek.x86_64 1/2
Reinstalling : kernel-uek-5.4.17-2036.101.2.el8uek.x86_64 1/2
Running scriptlet: kernel-uek-5.4.17-2036.101.2.el8uek.x86_64 1/2
Running scriptlet: kernel-uek-5.4.17-2036.101.2.el8uek.x86_64 2/2
Cleanup : kernel-uek-5.4.17-2036.101.2.el8uek.x86_64 2/2
Running scriptlet: kernel-uek-5.4.17-2036.101.2.el8uek.x86_64 2/2
Verifying : kernel-uek-5.4.17-2036.101.2.el8uek.x86_64 1/2
Verifying : kernel-uek-5.4.17-2036.101.2.el8uek.x86_64 2/2
Reinstalled:
kernel-uek-5.4.17-2036.101.2.el8uek.x86_64
Complete!
Generating grub configuration file ...
done
Removing yum cache
Switch complete. Oracle recommends rebooting this system.
[root@localhost ~]# sync
[root@localhost ~]# init 6
[root@localhost ~]# uname -a
Linux localhost.localdomain 5.4.17-2036.101.2.el8uek.x86_64 #2 SMP Wed Dec 2 17:56:10 PST 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.3"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.3"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.3"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:3:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.3
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.3
[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.3 (Ootpa)
[root@localhost ~]# ls -l /boot/vmlinuz-*
-rwxr-xr-x. 1 root root 9514120 Nov 19 17:28 /boot/vmlinuz-4.18.0-240.1.1.el8_3.x86_64
-rwxr-xr-x. 1 root root 9520664 Dec 16 00:42 /boot/vmlinuz-4.18.0-240.8.1.el8_3.x86_64
-rwxr-xr-x. 1 root root 8975912 Dec 3 02:02 /boot/vmlinuz-5.4.17-2036.101.2.el8uek.x86_64
[root@localhost ~]# grubby --set-default /boot/vmlinuz-4.18.0-240.8.1.el8_3.x86_64
The default is /boot/loader/entries/9ca4c5b61b164e6facdaf13cd7b2da93-4.18.0-240.8.1.el8_3.x86_64.conf with index 2 and kernel /boot/vmlinuz-4.18.0-240.8.1.el8_3.x86_64
[root@localhost ~]# uname -a
Linux localhost.localdomain 4.18.0-240.8.1.el8_3.x86_64 #1 SMP Tue Dec 15 16:36:32 PST 2020 x86_64 x86_64 x86_64 GNU/Linux
Umarım faydalı olur.
Kaynak:
Convertion projesi: https://github.com/oracle/centos2ol