Friday, February 6, 2015

[CentOS7]: Install Latest Stable Kernel On CentOS 6 And 7

Install Latest Stable Kernel On CentOS 6 And 7

In this brief tutorial, let us show you how I have upgraded my centos 7 kernel to the latest stable version. I am going to use a simple way so that beginners can easily understand how to upgrade to latest kernel.
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

Add ELREPO  repository

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.
kernel-centos
2015-02-04_124805
Done!

No comments: