Skip to content

Instantly share code, notes, and snippets.

@joariasl
Last active March 27, 2021 06:34
Show Gist options
  • Save joariasl/8f07c89461fdadbfce5295b35739e3b0 to your computer and use it in GitHub Desktop.
Save joariasl/8f07c89461fdadbfce5295b35739e3b0 to your computer and use it in GitHub Desktop.
Upgrade kernel CentOS 7
#!/bin/bash
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
yum --enablerepo=elrepo-kernel install kernel-ml
#yum --enablerepo=elrepo-kernel install kernel-lt
# Set the new kernel as default
grub2-set-default 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment