Linux – Kernel Headers for Fedora 21

fedora-21headerslinux-kernel

I'm trying to install VMware on Fedora 21. I've installed the kernel headers:

sudo yum install kernel-headers-`uname -r`

And I receive the following message:

Package kernel-headers-3.18.5-201.fc21.x86_64 already installed

However, there's nothing in /usr/src/kernels:

$ ls /usr/src
$ debug     kernels
$ ls /usr/src/kernels/
$

I guess something has changed, and I'm looking in the wrong place.

Where are the kernel headers located in Fedora 21?

Best Answer

To compile programs that build Linux kernel modules, such as VMware Tools, VMware Workstation, etc., you should install both the relevant kernel-headers and kernel-devel packages.

The kernel-headers package provides include files for compiling userland programs, especially the C library, while the kernel-devel package provides include files for compiling kernel modules (which VMware Tools is full of).


Also note carefully that VMware currently recommends that you not compile VMware Tools yourself on guest operating systems which provide open-vm-tools, but you should install open-vm-tools instead. For example:

yum install open-vm-tools
Related Question