From owner-freebsd-stable@FreeBSD.ORG Tue May 16 00:32:12 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3976016A65C for ; Tue, 16 May 2006 00:32:12 +0000 (UTC) (envelope-from duane@greenmeadow.ca) Received: from smtpout.eastlink.ca (smtpout.eastlink.ca [24.222.0.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAD5343D45 for ; Tue, 16 May 2006 00:32:11 +0000 (GMT) (envelope-from duane@greenmeadow.ca) Received: from ip02.eastlink.ca ([24.222.10.10]) by mta01.eastlink.ca (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0IZC0047C1I3FEW0@mta01.eastlink.ca> for freebsd-stable@freebsd.org; Mon, 15 May 2006 21:32:27 -0300 (ADT) Received: from blk-224-199-230.eastlink.ca (HELO [192.168.0.103]) ([24.224.199.230]) by ip02.eastlink.ca with ESMTP; Mon, 15 May 2006 21:32:11 -0300 Date: Mon, 15 May 2006 21:31:16 -0300 From: Duane Whitty In-reply-to: <20060515170354.grxho1n0o48cgog4@webmail.1command.com> To: "Chris H." Message-id: <44691D54.2060704@greenmeadow.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAQAAA+k= References: <20060515165650.cau6rf2escws4owg@webmail.1command.com> <20060515170354.grxho1n0o48cgog4@webmail.1command.com> User-Agent: Thunderbird 1.5.0.2 (X11/20060503) Cc: "\[FBSDS\]" Subject: Re: Upgrading question (issue?) - was:(no subject) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 May 2006 00:32:13 -0000 Chris H. wrote: > Quoting "Chris H." : > > Hello, > I have a question as to accomplishing an upgrade of *only* what ports I > already have installed. That is to say; I somewhat frequently suck down > the latest source for system and ports for the release I run on my > servers > (RELENG_5_4 - soon to be 5_5) and usually rebuildworld/ kernel, and > *painfully* > the ports I already have installed. Which brings me to my issue; Is there > any way to rebuild (upgrade) the ports I already have installed, and > *only* > the ports I already have installed? I have recently discovered > portmaster. > Which is heads-and-tails over portupgrade. But (from my personal > knowlede/ > experience) it doesn't provide a "one shot" command/ option to achieve my > desired goal. Many times while upgrading one of the ports, it will fail > during installation with the "HEY! this port is already installed! You > may > wish to cd to the ports directory and execute port deinstall, then port > reinstall" What?! I'm *upgrading* (or at least trying) this port. :\ > > Anyway, thank you for all your time and consideration. > > --Chris H. > Hi Chris, Does portupgrade -a not work for you? Actually, I've been thinking maybe the better way to accomplish this goal is: Read /usr/ports/UPDATING pkgdb -F script pre-update-all portupgrade -an exit Read pre-update-all and fix potential conflicts script update-all portupgrade -aFR portupgrade -a exit Read update-all for special instructions that went by during upgrade. As for the problem with a port utility telling you to deinstall a previous version, I've run into this as well. The problem is that the upgrade tools upgrade versions of the same application. They can't upgrade across different editions of a port. As an example, Apache 1.35 to Apache 2.2. Ports treat them as different applications. I think all the port utilities do this. Best Regards, Duane Whitty -- duane@greenmeadow.ca