CentOS 7 - Aktueller Kernel: Unterschied zwischen den Versionen

Aus QBWiki
Zur Navigation springenZur Suche springen
(Die Seite wurde neu angelegt: „=== Mainline / Longterm Kernel installieren === Die Mainline / Longterm Linuxkernel lassen sich am einfachsten über ELRepo installieren. Hierzu wie folgt den…“)
 
 
(6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
=== Mainline / Longterm Kernel installieren ===
+
=== Mainline / Longterm Kernel ===
Die Mainline / Longterm Linuxkernel lassen sich am einfachsten über ELRepo installieren.
+
 
Hierzu wie folgt den Public Key importieren:
+
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
 
  rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
  
Anschließend mit folgendem Befehl das Repository installieren
+
Install ELRepo for CentOS 7
 
  rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
 
  rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
  
Kernel installieren
+
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}
 
  yum --disablerepo=\* --enablerepo=elrepo-kernel install kernel-lt{,-tools,-tools-libs}
  
Alten (Standard CentOS 7) Kernel deinstallieren:
+
We add 'exclude=kernel*' to the CentOS-Base repository, so it won't check for kernel updates here.
  yum remove kernel{,-tools,-tools-libs}
+
  sed -i -e 's/gpgkey.*/& \nexclude=kernel*/g' /etc/yum.repos.d/CentOS-Base.repo
  
Grub2 Konfiguration absichern:
+
Create the new grub2-config:
 
  grub2-mkconfig -o /boot/grub2/grub.cfg
 
  grub2-mkconfig -o /boot/grub2/grub.cfg
 +
 +
[[Category:Linux]]
 +
[[Category:Server]]
 +
[[Category:CentOS]]
 +
[[Category:Tutorials]]

Aktuelle Version vom 21. Februar 2019, 13:28 Uhr

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