CentOS 7 - Aktueller Kernel
Aus QBWiki
Version vom 21. Februar 2019, 13:28 Uhr von Pascal (Diskussion | Beiträge)
Mainline / Longterm Kernel
CentOS 7 is still using 3.10 as the default kernel version. Since then there where a lot of enhancements we wanna use. For example: TLS v1.3
The default CentOS repository gives us no choice but using the kernel from ELRepo repository.
Import the public key:
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
Install ELRepo for CentOS 7
rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
Remove the old kernel
yum remove kernel{,-tools,-tools-libs}
Install the new one. We want to note explicitly not to use any repository except elrepo-kernel
yum --disablerepo=\* --enablerepo=elrepo-kernel install kernel-lt{,-tools,-tools-libs}
We add 'exclude=kernel*' to the CentOS-Base repository, so it won't check for kernel updates here.
sed -i -e 's/gpgkey.*/& \nexclude=kernel*/g' /etc/yum.repos.d/CentOS-Base.repo
Create the new grub2-config:
grub2-mkconfig -o /boot/grub2/grub.cfg