From owner-freebsd-questions@FreeBSD.ORG Thu Dec 4 12:33:25 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 F332F16A4CE for ; Thu, 4 Dec 2003 12:33:24 -0800 (PST) Received: from hotmail.com (bay9-f32.bay9.hotmail.com [64.4.47.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C03B43FCB for ; Thu, 4 Dec 2003 12:33:22 -0800 (PST) (envelope-from r0tt13@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 4 Dec 2003 12:33:22 -0800 Received: from 154.5.238.193 by by9fd.bay9.hotmail.msn.com with HTTP; Thu, 04 Dec 2003 20:33:21 GMT X-Originating-IP: [154.5.238.193] X-Originating-Email: [r0tt13@hotmail.com] X-Sender: r0tt13@hotmail.com From: "rotten rottie" To: wegster@mindcore.net Date: Thu, 04 Dec 2003 20:33:21 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 04 Dec 2003 20:33:22.0258 (UTC) FILETIME=[DC297320:01C3BAA5] 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 20:33:25 -0000 Ok lemme get this straight. ( Please bear with me.) Here is a list of packages that are on my system: vanapps01# pkg_info cvsup-without-gui-16.1f General network file distribution VS expat-1.95.5 XML 1.0 parser written in C ezm3-1.0 Easier, more portable Modula-3 distrib gettext-0.11.5_1 GNU gettext package gmake-3.80 GNU version of 'make' utility libiconv-1.8_2 A character set conversion library libtool-1.3.4_4 Generic shared library support script Since ssh is part of the base install .. if there is a patch/fix for ssh, which way is the proper way to update it... In other word how would I go about upgrading /usr/src/secure/usr.sbin/sshd or named or nfs or anything that is installed in the base install without rebooting ? >From: Scott W >To: rotten rottie >CC: freebsd-questions@freebsd.org >Subject: Re: Questions about updating... >Date: Thu, 04 Dec 2003 03:48:05 -0500 >MIME-Version: 1.0 >Received: from ms-smtp-03-eri0.southeast.rr.com ([24.25.9.102]) by >mc10-f7.hotmail.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 3 Dec 2003 >21:52:22 -0800 >Received: from mindcore.net (rdu163-100-105.nc.rr.com [24.163.100.105])by >ms-smtp-03-eri0.southeast.rr.com (8.12.10/8.12.7) with ESMTP id >hB45qHCH028916;Thu, 4 Dec 2003 00:52:17 -0500 (EST) >X-Message-Info: JGTYoYF78jEoDIcxE/d8MG4E7W9RQsz9 >Message-ID: <3FCEF4C5.5070506@mindcore.net> >User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) >Gecko/20031007 >X-Accept-Language: en-us, en >References: >In-Reply-To: >X-Virus-Scanned: Symantec AntiVirus Scan Engine >Return-Path: wegster@mindcore.net >X-OriginalArrivalTime: 04 Dec 2003 05:52:22.0405 (UTC) >FILETIME=[C93BFB50:01C3BA2A] > >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" >> > > _________________________________________________________________ Tired of slow downloads and busy signals? Get a high-speed Internet connection! Comparison-shop your local high-speed providers here. https://broadband.msn.com