From owner-freebsd-questions@FreeBSD.ORG Wed Dec 3 21:52:21 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9348F16A4CE for ; Wed, 3 Dec 2003 21:52:21 -0800 (PST) Received: from ms-smtp-03-eri0.southeast.rr.com (ms-smtp-03-lbl.southeast.rr.com [24.25.9.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1009143FBD for ; Wed, 3 Dec 2003 21:52:20 -0800 (PST) (envelope-from wegster@mindcore.net) Received: from mindcore.net (rdu163-100-105.nc.rr.com [24.163.100.105]) hB45qHCH028916; Thu, 4 Dec 2003 00:52:17 -0500 (EST) Message-ID: <3FCEF4C5.5070506@mindcore.net> Date: Thu, 04 Dec 2003 03:48:05 -0500 From: Scott W User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: rotten rottie References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: freebsd-questions@freebsd.org Subject: Re: Questions about updating... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2003 05:52:21 -0000 rotten rottie wrote: > I am a linux user that wants to switch to freebsd... I am a bit confused > > about applying updates etc.. > > I installed a box for trial it was 5.1, I wanted to see if I could use > ports > to update openssh for a test examp. After the port installed I noticed > that > another version of openssh was installed on the system. I talked with a > friend and he said that it was part of usr/src and I could update it by > compiling the usr.bin version.. which was fine and worked. Here are my > questions: > > 1) if there are two trees(lack of better words) why would ssh exist in > both > the system tree and the ports tree ? Wouldnt it be better to have it in > the > ports tree ? Well, it IS in the ports tree, but bear a few things in mind: 1. Everything in /usr/src is considered part of the base system, equivalent to 'system' in GenToo (unsurprisingly, as GenToo Portage/emerge is based heavily on bsd ports...but see below) 2. The ports tree is optional, but where you can track system source updates to a given CVS label, eg STABLE (recommended for production/stability), the ports tree isn't versioned, it's the equivalent of current. When you build from a port, it essentially builds the package and does a pkg_add, so it's still tracked by the bsd package system. This combination allows you to keep the base system at a stable level, and then either NOT update your ports tree to get the equivalent ports from the particular label you're tracking on a given system, or to selectivly update single ports software, or all of the ports collection. > > 2) I have used gentoo in the past and am curious if there is something > simular to emerge -up world/system -- I would like to cvs the ports/sys > and > then be able to see if anything need upgrading .. is this possible ? Yep, install portupgrade and cvsup. If it's on a slower system, highly recommend doing it via pkg_add -r portupgrade or pkg_add -r cvsup to avoid having to compile ruby, perl and possibly other dependencies from scratch. Once you become familiar with the way ports/portupgrade and cvsup work (Note- sections on all 3 in the handbook, should be installed under /usr/share/doc/handbook on your system), you can then if you decide to, use portupgrade and the buildworld target to effectively rebuild your entire system from source. The quickest equivalent to emerge -pUD world is using pkg_version > 3) Say there was a update to openssh .. which would be the proper way to > > update .. sync the sys tree and then just update ssh .. or sync the tree > and > recompile the system ? or remove the sys version and install the port > version and update the port ? Set up cvsup properly (handbook + example file in /usr/share/examples) to the label you want to track to, cron it, and have it mail you output, and subscribe to the freebsd security mailing list. Either should be enough to give you some indication by itself.. > > I am very happy with freebsd .. Im still in the exploring stage .. The > reasons for my questions is that I am a little weary of using freebsd in > > production if I dont easily know when updates are avail, having to > recompile > the system everytime I need a patch for a service. You don't nescessarily need to recompile the entire base system, let alone the equivalent of 'world,' for an update. portupgrade and pkg_version will help out here... Scott > Thanks for helping me convert, > rottie > > _________________________________________________________________ > Don’t worry if your Inbox will max out while you are enjoying the > holidays. Get MSN Extra Storage! http://join.msn.com/?PAGE=features/es > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >