From owner-freebsd-questions Sat Nov 10 16:10:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from andrsn.stanford.edu (andrsn.Stanford.EDU [171.66.112.163]) by hub.freebsd.org (Postfix) with ESMTP id C483037B418 for ; Sat, 10 Nov 2001 16:10:54 -0800 (PST) Received: from localhost (andrsn@localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.9.3/8.9.1) with ESMTP id QAA49690; Sat, 10 Nov 2001 16:02:29 -0800 (PST) Date: Sat, 10 Nov 2001 16:02:29 -0800 (PST) From: Annelise Anderson To: BSD Freak Cc: FreeBSD Questions Subject: Re: Correct Prcoeedure for upgrading a port or package In-Reply-To: <36952c36a627.36a62736952c@mbox.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Sun, 11 Nov 2001, BSD Freak wrote: > Hi everyone, > > I am a little unlear on exactly the correct procedure for upgrading a > port or package. From my experimentation I beleive the following is > correct but I'm still not quite sure if there is a better way: > > 1. pkg_delete mypackage 1.0 > 2. pkg_add mypackage 1.1 > > > I found out the hard way that simply installing a new version of a > package over the top of the previou one leads to problems removing the > old package (and it does not automatically remove the old version ie > you end up with two versions of the same package installed). > > Can any guru out there please tell me if my procedure for upgrading > ports and packages is sane or if there is a better way..... > > Thank in advance.... The portupgrade port seems to be emerging as the best tool for upgrading ports, since it deals with dependencies so well (both requirements for any given port and packages that depend on the port). Annelise -- Annelise Anderson Author of: FreeBSD: An Open-Source Operating System for Your PC Available from: mall.daemonnews.org and amazon.com Book Website: http://www.bittreepress.com/FreeBSD/introbook/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message