Hello,
I am new here. Looking for Linux kernel Headers.
There is no build directory in /lib/modules/4.4.57-18-3-default folder
Any help Appreciated
Akhil
Hello,
I am new here. Looking for Linux kernel Headers.
There is no build directory in /lib/modules/4.4.57-18-3-default folder
Any help Appreciated
Akhil
I usually install “kernel-devel”. That, in turn, pulls in the header packages for specific kernels.
Typo? Actually, kernel-devel does not pull in flavor specific devel packages but vice versa (kernel-$FLAVOR-devel pulls in kernel-devel).
In a nutshell, install “kernel-default-devel” (and double-check it is version 4.4.57-18.3).
AK
When I am installing, I include “kernel-devel”. And I also finish up with “kernel-default-devel”, without having to individually select that.
Hm,
# zypper in kernel-devel
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following 2 NEW packages are going to be installed:
kernel-devel kernel-macros
2 new packages to install.
Overall download size: 12.2 MiB. Already cached: 0 B. After the operation, additional 54.6 MiB will be
used.
I don’t know if there is some mechanism during fresh OS install (if you meant that by “when I install”), but the rpm for kernel-devel does not require or recommend any kernel-$FLAVOR-devel packages and as you can see above, if installing via zypper, when the system is already up und running, kernel-devel does not pull in any kernel-$FLAVOR-devel.
Be it as it may, running
# zypper in kernel-default-devel
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following 3 NEW packages are going to be installed:
kernel-default-devel kernel-devel kernel-macros
3 new packages to install.
Overall download size: 15.3 MiB. Already cached: 0 B. After the operation, additional 58.5 MiB will be
used.
will always pull in the headers needed to build out of tree kernel modules.
AK
“Mystery” solved.
I was correct about “the kernel-devel rpm does not pull in kernel-$FLAVOR-devel as a required or recommened package”.
It is actually a setting in zypp.conf which makes the difference.
If
solver.onlyRequires = true
is set (not the default but set on my systems to keep things smaller) kernel-devel will only pull in the required package kernel-macros.
With
solver.onlyRequires = false
(the default) zypper will also pull in kernel-default-devel.
AK
I install kernel development when I install from the dvd. It pulls in a number of files.
Yast shows both kenel-devels as 4.4.57-18.3.1. The default one is much smaller than the straight kernel-devel. As the kernel has been updated since I installed it looks like once installed they are all updated to the correct version.