How to install latest kernel on Cent. OS Linux 7 using yum command nix. Craft. I am a new Cent. OS Linux 7 user who runs it on my Laptop. As many of you know, I have a few documentation scripts freely available on my site. One of the scripts is for Citrix XenAppXenDesktop 7. 0 through 7. 7. Ci. I liked the operating system. Is there is a way to run lateststable Linux kernel on a Cent. OS Linux version 7 Cent. OS Linux 7. Linux kernel version 3. Both RHEL and Cent. Control Machine Requirements Currently Ansible can be run from any machine with Python 2 versions 2. 6 or 2. 7 or Python 3 versions 3. 5 and higher installed. Red Hat Enterprise Linux reserves user and group IDs below 1000 for system users and groups. By default, the User Manager does not display the system users. 4. 1. 2 Completing a Default Linux Installation. If you do not install the Oracle Preinstallation RPM, then Oracle recommends that you install your Linux operating.
OS does not provide an updated version of Linux kernel. RHEL backports patches for the Linux kernel version 3. However, it is posssilbe to compile your own kernel or install pre built kernel using a third party repo. This tutorial shows you how to install the latest stable mainline stable Linux kernel version on a Cent. OS 7 using yum command. The following instructions should work on RHEL 7. Oracle 7. x, Scientific Linux and more. Before you being. You can find out the current Linux kernel version using any one of the following command cat procversion. Sample outputs Linux version 3. Red Hat 4. 8. 5 1. GCC 1 SMP Tue Jun 2. UTC 2. 01. 7Or use old good uname command uname mrs. Sample outputs Linux 3. Finally, use the cat command to see the contains of etccentos release file cat etccentos release. Cent. OS Linux release 7. CoreHow To Check Linux Kernel Version. Step 1 Enable ELRepo. From the project home page It is an RPM repository for Enterprise Linux packages. ELRepo supports Red Hat Enterprise Linux RHEL and its derivatives Scientific Linux, Cent. OS others. The ELRepo Project focuses on hardware related packages to enhance your experience with Enterprise Linux. This includes filesystem drivers, graphics drivers, network drivers, sound drivers, webcam and video drivers. Import the public key. Warning Please note that installing a new kernel not officially supported by both RHEL and Cent. OS project. It is also possible that your system may not boot. As the kernel mllt packages are built from the source tar balls provided by kernel. Cent. OSRHEL distribution kernels. Hence, you must keep backups of all important files before you do this. Grab the GPG key using wget command wget https www. RPM GPG KEY elrepo. Check the fingerprint of the GPG key with the gpg command to make sure it matches the key published by elrepo. gpg quiet with fingerprint RPM GPG KEY elrepo. Sample outputs pub 1. DBAADAE5. 2 2. 00. RPM Signing Key for elrepo. Key fingerprint 9. C0 1. 04. F 6. 31. E0. B B1. AE 3. 09. B C3. 05 BAAD AE5. B8. C6. 6E6. D 2. DBAADAE5. 2 2. 00. RPM Signing Key for elrepo. Key fingerprint 9. C0 1. 04. F 6. 31. E0. B B1. AE 3. 09. B C3. 05 BAAD AE5. B8. C6. 6E6. D 2. If the fingerprint matches, import the GPG key with the rpm command. sudo rpm import RPM GPG KEY elrepo. Install ELRepo for Cent. OS 7. Again using the wget command. wget http www. Sample outputs 2. Resolving www. elrepo. Connecting to www. HTTP request sent, awaiting response. OK. Length 8. 58. Kapplicationx rpm. Saving to elrepo release 7. Ks in 0s. 2. 01. MBs elrepo release 7. Resolving www. elrepo. Connecting to www. HTTP request sent, awaiting response. OK. Length 8. 58. K applicationx rpm. Saving to elrepo release 7. Ks in 0s. 20. 17 0. MBs elrepo release 7. Step 2 Install elrepo. Type the following yum command yum install elrepo release 7. Sample outputs Fig. Installing ELRepo for my Cent. OS 7 box. Step 3 List all packages in the yum elrepo repositories available to be installed. Type the following yum command to list all packages in elrepo kernel repo yum list available disablerepo enablerepoelrepo kernel. Sample outputs elrepo kernel repos. Available Packages. Available Packages. Where,Long term support kernel package name is kernel lt version 4. Mainline stable kernel package name is kernel ml version 4. Step 4 Install kernel version. To install long term support kernel, run yum disablerepo enablerepoelrepo kernel install kernel lt. To install mainline stable kernel, run yum disablerepo enablerepoelrepo kernel install kernel ml. Sample outputs Fig. Installing mainline stable Linux kernel for my Cent. OS 7 box. Step 5 Boot into new kernel. Type the following reboot command to reboot the Linux box reboot. OR shutdown r now. OR shutdown r 0. Step 6 Verification. Find out the current Linux kernel version using any one of the following command cat procversion. Sample outputs Linux version 4. Red Hat 4. 8. 5 1. GCC 1 SMP Sat Jun 2. EDT 2. 01. 7Or use old good uname command uname mrs. Sample outputs Linux 4. Conclusion. I strongly suggest that if you need the latest kernel for hardware supportdrivers, get Fedora Linux latest. My professional opinion is you only use distro supplied kernel for security reasons on server or cloud computing. However, Linux or Cent. OS does not restrict your freedom. Another option is to compile Linux kernel from the source code itself. And there you have it, the latest version of mainline Linux kernel up and running on a Cent. OS Linux 7. x. For more info see the project home page here. Posted by Vivek Gite The author is the creator of nix. Craft and a seasoned sysadmin and a trainer for the Linux operating systemUnix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google.