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

Advertisements

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.


Buzz This    



     Leave a Comment      Browse the Archives     


  • 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)
blog comments powered by Disqus

Trackbacks