This command work with all Debian based OS.
Open a command shell, and type the following:
apt-get install -y linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')
If you have the equivalent for CentOS, RedHat, Fedora, etc… Please le me know in the comments so I can add it.
One Reply to “Easy command to install Linux Kernel Headers”
Nice and Easy !