RHEL7: How to install the most recent stable kernel.

Share this link

As it is pretty complicated to compile a new kernel, the ELRepo project provides an easy way to install a recent kernel, if you want to. Its elrepo-kernel channel actually allows you to install the most recent stable kernel.

Start by installing the ELRepo repository.

Then, temporary enable the elrepo-kernel channel and install the most recent stable kernel:

# yum --enablerepo=elrepo-kernel install -y kernel-ml

After rebooting, you will be able to choose the new kernel.
If you don’t want to choose at boot, type:

# grub2-set-default 0

Source: Inspired from this great Linoxide tutorial where you can additionally learn how to compile a kernel!

In addition, Bob Cromwell provides a page about building Linux kernels.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Leave a Reply

Be the First to Comment!

Notify of

RHCSA7: Task of the day

Allowed time: 3 minutes.
Check that you've got no SELinux policy violations.

RHCE7: Task of the day

Allowed time: 10 minutes.
Configure a system to forward all email to a central mail server at 192.168.1.1 (change the IP address accordingly).

Follow me on Twitter

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...