From owner-freebsd-questions@FreeBSD.ORG Sun May 11 15:12:57 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBEF4106566B for ; Sun, 11 May 2008 15:12:57 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.freebsd.org (Postfix) with ESMTP id 183808FC1D for ; Sun, 11 May 2008 15:12:57 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from epia-2.farid-hajji.net (epia-2 [192.168.254.11]) by fw.farid-hajji.net (Postfix) with ESMTP id 0DD1D3447D; Sun, 11 May 2008 17:12:53 +0200 (CEST) Date: Sun, 11 May 2008 17:12:51 +0200 From: cpghost To: Onkar Message-ID: <20080511171251.2a664cec@epia-2.farid-hajji.net> In-Reply-To: <6933400d0805110639t2f19c220ja2fd788ba2b7c774@mail.gmail.com> References: <6933400d0805110639t2f19c220ja2fd788ba2b7c774@mail.gmail.com> Organization: Cordula's Web X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Dowloading entire source code X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2008 15:12:58 -0000 On Sun, 11 May 2008 19:09:03 +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. 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/