Browse by category

Search    |    Advanced search

HowTo :: download FreeBSD Kernel v9 source

Please avoid using the tool sysinstall. It won't install the source distribution.

There are several ways to download FreBSD Kernel source. We will discuss only three:

1. Download the tar file that matches the version you installed:



Unpack the archive to /usr/src:

This will only get you Kernel source for FreeBSD v9.0-RELEASE.

2. Use the base system's already-installed csup to get the source.

Create a supfile: /root/9rel-supfile

*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_9_0
*default delete use-rel-suffix
*default compress

Change that first line to a near mirror (sysutils/fastest_cvsup can help to find the faster ones for your site, although it's not always accurate). Then run csup(1) on the supfile:

Different tags can be used to get 9.0-RELEASE or 9-STABLE. See CVS Tags.

3. SVN (Subversion) is a newer source control system. It is not part of the base system, so install devel/subversion. Then check out the source:

Other versions will have different URLs. For example, for 9-STABLE: svn://

svn includes a larger history and can take up to twice the amount of disk space as a CVS checkout.

Add comment
Views: 3129
Votes: 0
Comments: 0

Other articles in this Category