Re: Dowloading entire source code
On Sun, May 11, 2008 at 07:09:03PM +0530, 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. If you are installing FreeBSD on a machine, then the easiest thing to do is just check source when you are selecting those things to install.That will install the entire source for FreeBSD in /usr/src/... The ports is a separate thing. You probably do not want to install the entire source for everything in the ports tree. That changes constantly anyway.Just install the ports tree and then csup it to update it to the latest. Then, you can get any port source you want by going to /usr/ports/whatever and downloading it from there. Downloading the source for a port can be very complicated because many of the ports have lots of dependancies which cause other ports to be pulled in. That is all handled by the make files in the ports tree.So, if you download, build and install a port by going to it in the ports tree and typing make clean make make install make clean It will download the necessary sources, including the dependancies, build them and install them. The sources will be left in the ports tree source files. jerry > > regards, > Onkar > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Dowloading entire source code
On Sun, 11 May 2008 19:09:03 +0530 Onkar <[EMAIL PROTECTED]> 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. Welcome to FreeBSD Onkar! ;-) While installing from CD, you have the option to extract the source code. If you've already installed FreeBSD and your /usr/src is empty or non-existent, you could always login as 'root', and re-run the installer with: # /usr/sbin/sysinstall Then go to "Configure" (Do post-install configuration of FreeBSD), then "Distribution" (Install additional distribution sets), and then check "src" (Sources for everything). You could figure out the rest yourself. ;) The sources you'll get will be unpacked under /usr/src and can be used to recompile the system (kernel and base system) as described in the Handbook. Later, you may want to upgrade your system. Typically, you'll use 'csup' (/usr/bin/csup) to fetch the newest sources from one of the FreeBSD CVSUP mirrors. This will update your sources in /usr/src. Then you'll compile everything into /usr/obj (a temporary holding area) as described in the Handbook (have a look at /usr/src/UPDATING, near the end), and move the compiled binaries from /usr/obj to where they belong (again: see the Handbook). > regards, > Onkar -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Dowloading entire source code
-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- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"