I have been a arch linux user for the past 2 years and now moving on to freeBSD for kernel development.

I have install freeBSD and want to compile a dynamically loadable kernel module for freeBSD. As far as I know, On linux I just need to install linux-headers for the kernel version I am compiling against.

Is there any equivalent package on freeBSD for the same or I have to install full freeBSD source code ?


You can find it in /usr/src or you can download from here (src.txz).

In FreeBSD the base system is outside of package manager. You can't install kernel package, system utils (cp, ls, etc.) package, etc.. They are part of base system - you can update with freebsd-update (it's part of base system, of course). Check documentation too!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.