From owner-freebsd-current@FreeBSD.ORG Wed Oct 27 04:58:01 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7C4016A4CE for ; Wed, 27 Oct 2004 04:58:00 +0000 (GMT) Received: from hotmail.com (bay2-dav18.bay2.hotmail.com [65.54.246.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFA5943D31 for ; Wed, 27 Oct 2004 04:58:00 +0000 (GMT) (envelope-from tssajo@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 26 Oct 2004 21:58:00 -0700 Received: from 24.24.201.219 by BAY2-DAV18.phx.gbl with DAV; Wed, 27 Oct 2004 04:57:42 +0000 X-Originating-IP: [24.24.201.219] X-Originating-Email: [tssajo@hotmail.com] X-Sender: tssajo@hotmail.com From: "Zoltan Frombach" To: "Andre Guibert de Bruet" References: <20041027003640.K42571@alpha.siliconlandmark.com> Date: Tue, 26 Oct 2004 21:57:43 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-ID: X-OriginalArrivalTime: 27 Oct 2004 04:58:00.0504 (UTC) FILETIME=[887B6380:01C4BBE1] cc: freebsd-current@freebsd.org Subject: Re: Portupgrade -af question X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2004 04:58:01 -0000 Thank you for your prompt reply! All of the mentioned conditions are true in my case, so I guess this is the way I'm gonna go. I have a few ports that I compile with custom command line options, but I can always re-compile those later just by issuing individual portupgrade -f portname commands. My main point is to shorten the downtime this server must suffer at the "upgradathon". ;-) Again, thanks for confirming this! Zoltan > On Tue, 26 Oct 2004, Zoltan Frombach wrote: > >> Okay guys, this is my very first post to the list, so please be nice to >> me. ;-) >> >> I have a simple question. I currently have FreeBSD 5.2-CURRENT #3 (from >> May 9, 2004) installed on a semi-production server. I need to update it >> to 5.3-RELEASE when it becomes available. I've read in src/UPDATING that >> all installed ports must be rebuilt (after a successful build world and >> install world, of course). Someone suggested to use 'portupgrade -af' to >> rebuild all > > Don't forget the mergemaster step! > >> installed ports. But this would take a whole day, especially since it's >> just a single processor Pentium III system. Shouldn't it be faster to let >> portupgrade use pre-compiled packages (either from a 5.3-RELEASE install >> CD or from a remote site)? Something like: 'portupgrade -afP' ? Would it >> work? This would save a lot of time... a lot of down-time, in fact. > > This is guaranteed to work if: > - Your ports skeleton is up to date. > - This machine has HTTP and FTP access enabled. > - The ports you are upgrading are not forbidden, deprecated or broken. > - All distfiles are available from at least one of the relevant mirrors. > > This is the case because portupgrade -P searches for packages locally or > wherever PKG_PATH points to, tries to use pkg_fetch and then falls back to > updating from ports if precompiled packages are not available. > >> Can someone more experienced with portupgrade confirm that this would >> work? I would really appreciate either a firm yes or a firm no answer. I >> just need to know the answer to this question from someone who is more >> knowledgable than I am, before I start doing something stupid... ;-) >> Thank you guys, all!! > > "firm yes", but only if all of the above conditions are met. > > Have fun with this "upgradathon"! :-) > > Regards, > Andy