Dowloading entire source code

Aryeh M. Friedman aryeh.friedman at gmail.com
Sun May 11 14:16:28 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Onkar wrote:
| I am a newbie  to FreeBSD . I want ot downlod entire FreeBSD source 
code for
| reference. Please let me know how do i go about it.

Depends on if your talking about for the base system or ports or both.   
The easiest way to do it is use the csup procedures listed in the one of 
appendixs of the Handbook.  If you want to do it in in such a way that 
if you make a mortification the next csup will not globber it read the 
man page for developement(8), you should note though that some of the 
procedures listed there are overkill.  For example I skip most of the 
stuff on /usr/src2 (besides it breaks some tools).   For example this is 
how I update my sources on a daily baseis:

cvsup -h cvsup9.us.freebsd.org 
/usr/share/example/cvsup/cvsup-supfile                      // fetch the 
latest6 cvs repository
cd /usr/src
cvs -q update 
-dP                                                                                                               
// update my local base systems sources
// do the make procedure listed in the handbook
cd /usr/ports
cvs -q update 
-dP                                                                                                               
// update my ports tree
portsupgrade 
-a                                                                                                                  
// install any new port updates

Note this method will give you a 8-CURRENT system if you want some other 
version you will have to put a tag option on the /usr/src cvs call.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgm/7UACgkQk8GFzCrQm4Al/gCeK0vsp9QqVYycqKLUKyinSImu
1FgAoIYiHM5RaVmYI76zGDAbJNa5h7Jp
=06ha
-----END PGP SIGNATURE-----



More information about the freebsd-questions mailing list