CentOS Linux install kernel headers to build vmware / 3rd party modules

CentOS Linux install kernel headers to build vmware / 3rd party modules

To install kernel headers on CentOS Linux to build VMware or other third-party modules, you will need to have root access or superuser privileges.

  1. Check the version of your kernel by running the following command:
refe‮t r‬o:lautturi.com
uname -r

This will display the version of your kernel. Make note of the version, as you will need it to install the correct kernel headers.

  1. Install the kernel headers by running the following command, replacing kernel-version with the version of your kernel:
sudo yum install kernel-devel-kernel-version

For example, if your kernel version is 4.18.0-193.el8.x86_64, you would run the following command:

sudo yum install kernel-devel-4.18.0-193.el8.x86_64

This will install the kernel headers for your specific kernel version.

  1. Once the kernel headers are installed, you should be able to build VMware or other third-party modules that require kernel headers.

Note: If you are using a version of CentOS that uses the dnf package manager instead of yum, you can use dnf to install the kernel headers by running the following command:

sudo dnf install kernel-devel-kernel-version

Replace kernel-version with the version of your kernel as before.

Created Time:2017-10-28 14:02:22  Author:lautturi