centos7 升级内核到最新版 - songbingyu/docket_study GitHub Wiki

目前,centos7 的内核是 3.10.0, 想要研究下eBPF,所以升级了下内核, 记下步骤:

  1. rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
  2. rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
  3. yum install yum-plugin-fastestmirror
  4. yum --enablerepo=elrepo-kernel install kernel-ml
  5. grub2-set-default 0
  6. reboot 重启

参考:

Linux Kernel 4.7 is released – Install it in CentOS 7 and Ubuntu 16.04

CentOS7升级内核到最新版本

How to Upgrade Linux Kernel to Stable 3.18.4 on CentOS 7.x