Q. I need to configure FreeBSD kernel but not able to find out source code in /usr/src/sys directory. How do I install FreeBSD source code?
A.Your kernel and all related source code is located at /usr/src/sys directory which is also accessible through the /sys path.
If there is not a /usr/src/sys directory on your system, then the kernel source has not been installed. The easiest way to do this is by running sysinstall as root, choosing Configure, then Distributions, then src, then base and sys
# sysinstall

Select Configure

Select Distributions

Select src

Then base and sys > Select ok

Further readings
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- My 10 UNIX Command Line Mistakes
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
- Email FAQ to a friend
- Download PDF version
- Printable version
- Comment RSS feed
- Last Updated: 06/30/07


{ 5 comments… read them below or add one }
Salamo Alikom
does any way to get it with cvs ?
Thanks a lot for the information!
It was helpful
tnks man!
It really help me!
followed these steps, but got:
Warning: Can’t find the ‘8.0-RELEASE-p2′ distribution on this FTP server.
I chose many different servers. What now?
actually, need to:
# sysinstall
configure
options
then change the release name to 8.0-RELEASE and it works fine after that.