Source: http://www.makeuseof.com/tag/update-linux-kernel-improved-system-performance/
CHECK LATER: http://www.makeuseof.com/tag/5-reasons-update-kernel-linux/
--- DRAFT 8/30/16 - Adam
Why update to latest stable kernel?
First you'll need to check which architecture your system uses: 32-bit or 64-bit. Use the uname command for this:
uname -a
Example output:
Linux localhost.localdomain 4.6.6-300.fc24.x86_64 #1 SMP Wed Aug 10 21:07:35 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
You will know that you are running a 64-bit system if you see x86_64
. Otherwise, you have a 32-bit system. Keep this in mind when you go to download the newest kernel release.
Next, visit kernel.org to find the latest stable kernel. At the time of this writing (Aug. 30, 2016), the latest stable release was version 4.7.2.
---
Source: https://www.unixmen.com/install-latest-stable-kernel-centos-6-7/
Machine details:
cat /etc/os-release
NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/"
Installed Kernel info:
uname -a
Linux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Import the Public Key:
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
To install ELRepo for RHEL-7, SL-7 or CentOS-7:
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
To install ELRepo for RHEL-6, SL-6 or CentOS-6:
rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
Start the new kernel installation:
yum --enablerepo=elrepo-kernel install kernel-ml-3.*
Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.1000mbps.com * elrepo: ftp.nluug.nl * elrepo-kernel: ftp.nluug.nl * epel: mirror.proserve.nl * extras: mirror.1000mbps.com * rpmforge: ftp.nluug.nl * updates: mirror.widexs.nl Resolving Dependencies --> Running transaction check ---> Package kernel-ml.x86_64 0:3.18.5-1.el7.elrepo will be installed --> Finished Dependency ResolutionDependencies Resolved============================================================================================================================== Package Arch Version Repository Size ============================================================================================================================== Installing: kernel-ml x86_64 3.18.5-1.el7.elrepo elrepo-kernel 35 MTransaction Summary ============================================================================================================================== Install 1 PackageTotal download size: 35 M Installed size: 160 M Is this ok [y/d/N]: Y
Accept and proceed by typing Y.
Reboot your system.