Installing 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:
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.