In your case, you'd go to /usr/src and do svn checkout https://svn.freebsd.org/base/releng/11.1 . (or maybe pick a different mirror). This will checkout the most recent patchlevel (atm -p10).
really, read it, it's short and well written and covers both kinds of Source
World is the base installation (poster above showed you). Ports are any software outside that. The source for these is handled separately and slightly differently. easy examples are in the Handbook.
This is how I download and update the source code on FreeBSD 12.1 with svn [they say not to use two different methods.]
Update /usr/src tree
********************
[To remove the source tree delete the contents of /usr/src including the .svn directory.]
Use:
uname -r to find out your version number
Create the source tree with svn with this command [assuming we are using FreeBSD 12.1-RELEASE]:
sudo svn checkout https://svn.freebsd.org/base/releng/12.1 /usr/src
If we were using the CURRENT version we would use this command [as of this writing it is version 13-CURRENT]:
sudo svn checkout https://svn.freebsd.org/base/head /usr/src
You can view the different source trees available here:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.