I need to install the
linux-header-* package for other kernel versions in order to compile a kernel module locally for a different system.
Say, I want to compile for Debian 10, with a kernel version of 4.19.0-13-amd64, using Ubuntu 20.10, with a kernel version of 5.8.0-43-generic.
In that case, is it possible to install the neccessary
linux-headers-4.19.0-13-amd64 package from the Ubuntu 20.10 machine?
apt-cache search linux-headers-.* only show
5.8.0-* versions on Ubuntu 20.10.
If not possible to download the necessary kernel headers using
apt-get, where can these be obtained? I don't want the complete Linux source, just the headers required for compiling the kernel module.