You Are Here: Home » Articles » How-To » Linux » OS

How to install linux build and kernel headers for fedora/redhat/centos?

By on June 17th, 2009     

fedora logoInstalling Build and Kernel Headers for your Linux distribution is very easy using the  yum tool available in Red Hat based systems. Fedora which is the Community's free Red Hat , can also have the Linux Build and Kernel headers installed using the yum tool. Just use the following command to install the build and header files for Red Hat Enterprise Linux, Fedora Linux or CentOS:

sudo yum install kernel-devel kernel-headers

Remember using this command you can install build and kernel headers on all Red Hat based Linux Distributions including Red Hat Enterprise Linux, Fedora Linux and CentOS . For Installing Build and Kernel Headers on a Debian or Debian based system like Ubuntu, see this.




         Submit to Reddit     Stumble


Related Posts by Tags: , , , , , , , , , , ,



  • Pingback: How to install Virtualbox Guest Additions for a Linux Guest? | Digitizor

  • Parikshith

    The above command will install the latest kernel headers, meaning not necessarily same as the actual kernel installed. So to get the kernel headers corresponding to your actual kernel number, a better command will be

    sudo yum install kernel-devel-$(uname -r)

    • Bobisdrunk22

      thanks Parikshith

  • Tony

    Thanks. Great help!

    • Anonymous

      Amazing tips

  • sandy

    while entering this command ot will ask for sudo password what are we supposed to do

  • guest

    Sorry, new to Linux so I hope this is not a dumb question. I get a “No package kernel-devel available” message when I execute “sudo yum install kernel-devel kernel-headers”. How do I resolve this?



How to install linux build and kernel headers for fedora/redhat/centos? was originally published on Digitizor.com on June 17, 2009 - 3:58 pm (Indian Standard Time)