Skip to content

Instantly share code, notes, and snippets.

@isccarrasco
Last active March 25, 2022 17:27
Show Gist options
  • Save isccarrasco/a1965c11a1595b8da12a65085faf8d7a to your computer and use it in GitHub Desktop.
Save isccarrasco/a1965c11a1595b8da12a65085faf8d7a to your computer and use it in GitHub Desktop.
Install kernel headers con CentOS 7 for VirtualBox

For Ubuntu

  1. sudo dpkg -l | grep -E "dkms|linux-headers-$(uname -r)|build-essential"
  2. apt install dkms build-essential
  3. sudo apt install dkms linux-headers-$(uname -r) build-essential

Review the list of kernels currently installed.

$ cd /usr/src/kernels/ $ ls -l

Install the kernel-devel to have the dependencies for the CentOS version.

$ yum install kernel-devel

List the kernels with the current version

$ ls -l /usr/src/kernels/$(uname -r)

Install the kernel-headers

yum install kernel-headers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment