Redhat linux kernel download binary ready kernel steps - unix1998/technical_notes GitHub Wiki

Red Hat Enterprise Linux (RHEL) and CentOS, you can install pre-built kernel binaries without rebuilding the kernel from source. Here are the steps to do this:

1. Update Package Repository

First, ensure that your package repository information is up-to-date.

sudo yum update

2. Install the Kernel Package

To install the latest available kernel, use the following command:

sudo yum install kernel

This will download and install the latest kernel version available in the repository.

3. Verify the Installation

After installation, you can verify that the new kernel is installed by listing the available kernels.

sudo rpm -q kernel

This command will list all installed kernel versions.

4. Update GRUB Configuration

The installation process should automatically update the GRUB bootloader configuration. However, you can manually update it if needed:

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

On UEFI systems, use:

sudo grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg

5. Reboot the System

Reboot your system to load the new kernel:

sudo reboot

6. Verify the Running Kernel

After the system reboots, you can verify that the new kernel is running with:

uname -r

Summary

These steps allow you to install and run a new kernel on RHEL or CentOS without the need to rebuild it from source. This method is much quicker and simpler, leveraging pre-built kernel binaries provided by the distribution maintainers.