Updating the source tree
(svnup) |
|||
Line 6: | Line 6: | ||
== Subversion == | == 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 | + | An easy way to update through [[subversion]] is to install svnup; edit its configuration file; then run the command with the option set in {{file|/usr/local/etc/svnup.conf}}. |
− | + | Partial {{file|svnup.conf}} file: | |
− | host=[choose server] | + | host=''[choose server]'' # uncomment one of these lines |
# | # | ||
[release] | [release] | ||
Line 15: | Line 15: | ||
target=/usr/src | target=/usr/src | ||
− | The command with arguments in this example is: | + | The command to run with arguments in this example is: |
− | + | % svnup release | |
== ctm == | == ctm == |
Latest revision as of 07:52, 30 October 2015
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
[edit] 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.
Partial svnup.conf file:
host=[choose server] # uncomment one of these lines # [release] branch=base/releng/10.1 target=/usr/src
The command to run with arguments in this example is:
% svnup release
[edit] 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.
[edit] 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.