Home arrow Guides arrow Updating Kernel, World and Ports With Subversion
Updating Kernel, World and Ports With Subversion PDF
Monday, 17 September 2012
First install a base FreeBSD system.

Then use portsnap to get ports:

  portsnap fetch

We must also extract ports from the archive we've downloaded using portsnap:

  portsnap extract

Then install subversion:

  cd /usr/ports/devel/subversion
  make install clean; rehash

Now you are ready to use Subversion to get sources for kernel, world and ports.

To update your FreeBSD kernel and world sources using subversion run the following command:

  svn checkout svn://svn.freebsd.org/base/releng/9.1/ /usr/src

If you want to get FreeBSD 9-STABLE run;

  svn checkout svn://svn.freebsd.org/base/stable/9/ /usr/src

Note that kernel and world will be updated to FreeBSD 9.0 Release. Before running previous command if you had sources in /usr/src updated with cvsup it is better to delete /usr/src prior to running svn command.

Here on freebsdonline.com you will also find a tutorial on how to use subversion as your svn development server.

To get ports tree using svn we will run:

  svn checkout svn://svn.freebsd.org/ports/head /usr/ports

Once you've copied source tree from the svn repository you can update it from time to time using:

  cd /usr/src
  svn update

or (for ports):

  cd /usr/ports
  svn update

If you want to see the version of your local tree of sources just run:

  cd /usr/src
  svn status --show-updates

Last Updated ( Tuesday, 11 June 2013 )
Next >

Other BSD Systems





Best BSD firewall?