How to Install or Upgrade to Latest Kernel Version in CentOS 7

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.95/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...

11 Responses

  1. Gagan Bajaj says:

    Can do the same if I am operating centos 6.8 version?

  2. Ries says:

    Can I only pick the latest kernel or a LTS like 4.4?

  3. Ries says:


    Great tutorial,

    I have one question before updating my kernel, how should I pick kernel 4.4 if I choose to want that one? (4.4 is an LTS if I’m correct)


    • Gabriel A. Cánepa says:

      @Ries – to be honest I wrote this article with updating to the latest kernel available in mind. But in theory, you should be perfectly fine with choosing another one. It goes without saying that you may want to test on a non-production machine first to be sure.

  4. pajafumo says:

    And now, how to update kernel headers, etc.

    I got this error

    Error: kernel-ml-headers conflicts with kernel-headers-3.10.0-514.16.1.el7.x86_64

    what to do?

    • Ravi Saive says:


      The installed kernel-ml-headers already provides all the needed modules for building kernel, but if you really need kernel-headers, you can remove he kernel-ml-headers package forcibly with rpm:

      # rpm --nodeps -e kernel-ml-headers

      Then you can able to install the kernel-headers package using yum tool:

      # yum install kernel-headers

      You will get some error warning, but you can ignore those warnings: those dependencies will be installed again once the kernel-headers package is installed.

  5. Prem says:

    Thank u for posting …This method used for production environment or lab setup

  6. Chris Pesoa says:

    This is not one of the best tutorial explaining what the Kernel is and how to upgrade it.

    Is concise.
    To the point.
    Without the boring start story.
    Commands executed without errors.
    Everything you need to GET YOUR KERNEL UPGRADED!

    Thanks a lot!

    Let’s tweet this!

    • Gabriel A. Cánepa says:

      Chris – thank you for your kind words! We’re glad that you liked this article and were able to follow the steps successfully!

Got something to say? Join the discussion.

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