- sudo dpkg -l | grep -E "dkms|linux-headers-$(uname -r)|build-essential"
- apt install dkms build-essential
- 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