Sunday, 16 July 2017

How to install the latest version of the kernel on RPM-based systems

If you need to install the latest version of the Kernel on RPM-based systems, here's how to do it.

The core of Linux is in constant updating and updating it brings some important changes and several bug fixes, which makes the task important and necessary.


I always show how to update it here in the blog, although the procedure is aimed at Ubuntu and derivatives. On systems based on RPM packages, it is also possible to upgrade using the ElRepo repository, which provides the latest stable kernel release for CentOS 7, Enterprise Linux 7, RHEL 7, and systems derived from them and compatible with the available kernel.

Before starting to start installing the kernel, know that this is a procedure that although simple, requires advanced system knowledge and should be done at your own risk.


How to install the latest version of the kernel on RPM-based systems


To install the latest version of the kernel on RPM-based systems, do the following
Step 1. Open a terminal as an administrator;
Step 2. Download and import the repository key;



rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
Step 3. Add the repository with the command below;

rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
Step 4. Now use the following command to install the kernel and confirm;

yum --enablerepo=elrepo-kernel install kernel-ml
Step 5. Restart the system with the command below and at boot time, select the 4.x kernel in the Grub menu:

reboot
How to install the latest version of the kernel on RPM-based systems

Note: All drivers that are not part of the main kernel tree (which obviously includes proprietary drivers) must be recompiled to new kernel versions.

How to uninstall the 4.x kernel


Step 6. If you have a problem and want to uninstall the current kernel, restart the computer with a previous kernel (by selecting it in the Grub menu, using Grub -> Advanced -> select previous kernel, or Grub -> Advanced -> Kernel) and when you start the system, log in, open a terminal and run the command below to remove the Linux Kernel:

yum remove kernel-ml
Then update the GRUB menu with the command:

sudo update-grub

No comments:

Post a Comment