How to Install or Upgrade to Kernel 5.0 in CentOS 7

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Gabriel Cánepa

Gabriel Cánepa is a GNU/Linux sysadmin and web developer from Villa Mercedes, San Luis, Argentina. He works for a worldwide leading consumer product company and takes great pleasure in using FOSS tools to increase productivity in all areas of his daily work.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

58 Responses

  1. Hello, I tried to set grub default 0, and rebuild the grub.conf but the problem when boot it doesn’t choose the version 5 but still default check version 3. Is there any other ways to force it to 5? Thanks

  2. Fleet says:

    The whole update process via YUM works fine, however the new Kernel did not fix the mouse bug. Does anyone else have a fix for this?

  3. sorin rosenerbg says:

    Please notice you forgot to replace the last two 4.20 screen shots.

    • Ravi Saive says:


      I replaced them, but I think its due to caching, I cleared cache at server end, so that new images will appear properly..

  4. Bile Bakshi says:

    After run this scripts my system doesn’t boot from the latest one i mean to say “4.20 kernel” it was booted from my last one which is “3.10 kernel”

  5. Dima says:

    How to revert to old kernel?

    • Ravi Saive says:


      If you’ve installed new Kernel using Elrepo, you can easily revert back to previous Kernel using following command.

      # yum --enablerepo=elrepo-kernel remove kernel-ml
  6. Melanie says:

    Its is great that free ebooks are being offered – it certainly is good for people who want to learn more but the one thing that is so so annoying is the hundreds of fields one has to complete and actually forced to complete in order to download a book – why on earth do they need all your contact details? what do they plan on doing with it? surely once is enough? but the same details over and over again how many fields is pathetic!

  7. ErikLtz says:

    Kind of works, but then “pstore: No deflate compression” halts the boot process. Anyone else had this? What pstore…?

  8. Cosmin says:

    It doesnt work, I tried it step by step without any erros, but after system reboot, my Centos 7 kde only boots with 3.10, and in advanced options, only has 3.10 kernel.

  9. Vishal Yadav says:

    To avoid messing with grub configurations use “grubby” tool which provides nice interface for dealing with grub configurations.

Leave a Reply to ErikLtz Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.