From owner-freebsd-questions@FreeBSD.ORG Sat Nov 7 20:20:59 2009 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 BF1291065679 for ; Sat, 7 Nov 2009 20:20:59 +0000 (UTC) (envelope-from frank@shute.org.uk) Received: from atmail-9.bnguk.net (atmail-9.bnguk.net [80.74.253.9]) by mx1.freebsd.org (Postfix) with ESMTP id 4FE708FC18 for ; Sat, 7 Nov 2009 20:20:59 +0000 (UTC) Received: from 54-144.adsl.zetnet.co.uk ([194.247.54.144] helo=orange.esperance-linux.co.uk) by atmail-9.bnguk.net with esmtp (Exim 4.69) (envelope-from ) id 1N6rmG-0004u7-JT; Sat, 07 Nov 2009 20:20:52 +0000 Received: by orange.esperance-linux.co.uk (Postfix, from userid 1001) id 3D9044AC1B; Sat, 7 Nov 2009 20:20:52 +0000 (GMT) Date: Sat, 7 Nov 2009 20:20:52 +0000 From: Frank Shute To: Roger Message-ID: <20091107202052.GA92497@orange.esperance-linux.co.uk> Mail-Followup-To: Roger , freebsd-questions@freebsd.org References: <9d972bed0911060931k4ee2a5b7n9d62db23beeb6367@mail.gmail.com> <9d972bed0911070839q3f9ded02q40de4637278bcec9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9d972bed0911070839q3f9ded02q40de4637278bcec9@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 8.0-RC1 amd64 X-Organisation: 'shute.org.uk' Cc: freebsd-questions@freebsd.org Subject: Re: Help understanding basic FreeBSD concepts (ports, updates, jails) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Nov 2009 20:20:59 -0000 On Sat, Nov 07, 2009 at 11:39:41AM -0500, Roger wrote: > > Hello all, > > I have another concept that I'm confused about, the source distribution. > Some ports, like "lsof" require the existence of /usr/src. > What I don't understand is which version to use to keep synchronized > with the production release. > When the installed was performed the release was 7.2 but after doing > "freebsd-update" the release is now > 7.2-p4. According to the documentation, I can track CURRENT, STABLE plus other. > Which one is the recommended one for a production server. I have not > build that many > packages that need the sources present so now would be a good time to > find out which one > I should use. > > Thank you for your time and patience, > > -r You mentioned lsof but there is a utility in base which you probably don't know about called fstat(1), which does a lot of what lsof does. IIRC, the sources for 7.2 should be on the CD (run sysinstall(8) after sticking the CD in). That will save you from downloading all the sources. Then update the sources with csup(1) using the correct tag: RELENG_7_2 There's a supfile, /usr/share/examples/cvsup/standard-supfile, which you can change the default host and cvs tag of and it should work. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html goes into the details. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html