pavement

Updating the source tree

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
(moving sections to cvs. since cvs no longer does this function.)
(svnup)
Line 4: Line 4:
  
 
CVS for updating FreeBSD sources, ports and base is depreciated. This function has been replaced by subversion and CTM. [http://www.freebsd.org/developers/cvs.html FreeBSD: Source code repositories]
 
CVS for updating FreeBSD sources, ports and base is depreciated. This function has been replaced by subversion and CTM. [http://www.freebsd.org/developers/cvs.html FreeBSD: Source code repositories]
 +
 +
== Subversion ==
 +
An easy way to update through [[subversion]] is to install svnup; edit its configuration file; then run the command with the option set in ''/usr/local/etc/svnup.conf'' .
 +
 +
Incomplete ''svnup.conf'' file:
 +
host=[choose server]
 +
#
 +
[release]
 +
branch=base/releng/10.1
 +
target=/usr/src
 +
 +
The command with arguments in this example is:
 +
#svnup release
  
 
== ctm ==
 
== ctm ==

Revision as of 10:31, 21 December 2014

When updating your FreeBSD system, you'll first want to sync your sources to the live sources. This was previously offered via cvs. If you hail from a Windows environment, you may think of keeping your sources updated as about the first half of the FreeBSD procedure which corresponds to Windows Update. There are two major systems that most users will want to keep up to date, the source tree (described here), and the ports tree (described in Updating the ports tree).

The source tree is the actual code for the kernel and the fundamental system programs (collectively known as the 'world') for the FreeBSD operating system.

CVS for updating FreeBSD sources, ports and base is depreciated. This function has been replaced by subversion and CTM. FreeBSD: Source code repositories

Subversion

An easy way to update through subversion is to install svnup; edit its configuration file; then run the command with the option set in /usr/local/etc/svnup.conf .

Incomplete svnup.conf file:

host=[choose server]
#
[release]
branch=base/releng/10.1
target=/usr/src

The command with arguments in this example is:

#svnup release

ctm

Ctm is another way to update source files. It appears that this method has security issues. Please see the FreeBSD Handbook (Appendix A), and ctm's man page for more details.

It's updated. Now what?

Well... since you ended up here in the first place... I'm guessing you either came from Upgrading_the_base_system, Custom Kernel or Updating the system. Usually you update the source to do one of the first two.

Personal tools