Date: Mon, 7 Oct 2002 09:37:06 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Rus Foster <rghf@fsck.me.uk> Cc: questions@FreeBSD.ORG Subject: Re: Proper way to upgrade packaes from ports Message-ID: <20021007083706.GB4922@happy-idiot-talk.infracaninophi> In-Reply-To: <20021007085818.K84231-100000@freebsd.rf0.com> References: <20021007085818.K84231-100000@freebsd.rf0.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021007083706.GB4922>