From owner-freebsd-questions Mon Oct 7 1:37:14 2002 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 3374F37B401 for ; Mon, 7 Oct 2002 01:37:13 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A51D43E91 for ; Mon, 7 Oct 2002 01:37:12 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id g978bBVc005454; Mon, 7 Oct 2002 09:37:11 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id g978b6eb005449; Mon, 7 Oct 2002 09:37:06 +0100 (BST) Date: Mon, 7 Oct 2002 09:37:06 +0100 From: Matthew Seaman To: Rus Foster Cc: questions@FreeBSD.ORG Subject: Re: Proper way to upgrade packaes from ports Message-ID: <20021007083706.GB4922@happy-idiot-talk.infracaninophi> References: <20021007085818.K84231-100000@freebsd.rf0.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021007085818.K84231-100000@freebsd.rf0.com> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-13.4 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT,USER_AGENT_MUTT version=2.41 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Oct 07, 2002 at 09:00:49AM +0100, Rus Foster wrote: > I've got a general question. Say I've install /usr/ports/net/foobar_0.1, > I do a cvsup and see new foo_bar0.2. What is the best way to upgrade? > Either pkg_rm foobar_0.1 + pkg_add foobar_0.2, force the installation > of 0.2 or is there some other way? The third way: which is to install and use portupgrade -- it's in ports/sysutils/portupgrade. Generally, directories under /usr/ports don't have any sort of version information in the name, with some exceptions. Updating those ports is handled very smoothly by portupgrade. However, if there are two different versioned ports, eg. www/apache13 and www/apache2, (or even www/mozilla and www/mozilla-devel), then they are separate ports. Don't assume that just because they have similar names that one can be trivially substituted for the other. Sometimes you can, but more usually it takes a lot of bodging around to sort out dependencies and so forth if it can be done at all. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message