Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 May 2013 17:41:16 -0400
From:      Michael Powell <>
Subject:   Re: How to get kernel source code of free-BSD release 9.1
Message-ID:  <knbgto$t9m$>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Chou, David J wrote:

> Hi,
> I  have created a virtual machine of PC-BSD release 9.1 64 bit in VMware
> Player Version 5.0.0 build-812388 based on PCBSD9.1-x64-DVD.iso downloaded
> from , and
> setup network configuration and installed Firefox 20.0 by AppCafe, and
> configured the network setting in Preference->Advanced of Firefox, and I
> could  access Internet.
> Now I need to build my own customized kernel, but there is no src
> subdirectory in /usr, so here is my question:
>   1.  Is there any way to install kernel source when I create the  virtual
>   machine from PCBSD9.1-x64-DVD.iso ?

Not sure about PCBSD as I haven't used it, but with regular FreeBSD I 
believe you can by selecting the appropriate package distribution group. 
Been a while since I've done an install, but even so the source will be the 
static RELEASE bits and not contain any security updates.

>   2.  Any BKM to get the kernel source after the Virtual Machine already
>   created as my case now?

Yes - install the devel/subversion port. Go ahead and create the src 
directory under /usr. Then do:

svn checkout svn:// /usr/src

Once having checked out you can then issue a svn update /usr/src command to 
pull in security updates as they become available over time.

There are also two US mirrors available such as:

svn checkout svn:// /usr/src
svn checkout svn:// /usr/src

I have used the us-east one. There is also a project underway to add in to 
base an 'svnup', similar in scope to how csup replaced cvsup to make it 
easier in the future.

I believe freebsd-update is also a possibility but I have no experience with 
it. At any rate, more details can be found in the Handbook.


Want to link to this message? Use this URL: <$t9m$1>