From owner-freebsd-questions Mon Oct 7 15:32:54 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 C26F037B481 for ; Mon, 7 Oct 2002 15:32:48 -0700 (PDT) Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D7C743E65 for ; Mon, 7 Oct 2002 15:32:48 -0700 (PDT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP id MUA74016; Mon, 07 Oct 2002 15:32:47 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Postfix) with ESMTP id 7B7C85D04; Mon, 7 Oct 2002 15:32:46 -0700 (PDT) To: "Jack L. Stone" Cc: John Kozubik , Rus Foster , questions@FreeBSD.ORG Subject: Re: Proper way to upgrade packaes from ports In-reply-to: Your message of "Mon, 07 Oct 2002 17:13:17 CDT." <3.0.5.32.20021007171317.012014c0@mail.sage-one.net> Date: Mon, 07 Oct 2002 15:32:46 -0700 From: "Kevin Oberman" Message-Id: <20021007223246.7B7C85D04@ptavv.es.net> 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 > Date: Mon, 07 Oct 2002 17:13:17 -0500 > From: "Jack L. Stone" > > At 12:54 PM 10.7.2002 -0700, Kevin Oberman wrote: > >> Date: Mon, 07 Oct 2002 14:49:23 -0500 > >> From: "Jack L. Stone" > >> Sender: owner-freebsd-questions@FreeBSD.ORG > >> > >> At 12:21 PM 10.7.2002 -0700, John Kozubik wrote: > >> > > >> >Rus, > >> > > >> >Please take a look at /usr/ports/sysutils/portupgrade, as it is the > >> >appropriate tool for these sort of upgrades. > >> > > >> >Circumstantial evidence over the years has led me to believe that most > >> >ports will actually successfully and without issue overwrite their > >> >previous iterations that were also installed via the ports tree (lynx, > >> >wget, things like that). > >> > > >> >----- > >> >John Kozubik - john@kozubik.com - http://www.kozubik.com > >> > > >> > > > > >> If you don't mind first deinstalling the old port, then a simple way is to: > >> # pkg_delete > >> ...then cd /usr/ports/foo_2: > >> #make install clean > >> > >> You are now up to date..... > > > > > >This ignores dependencies. If I upgrade some port but don't get the > >dependencies as well, things can break. portupgrade was designed to > >handle these. > > > >R. Kevin Oberman, Network Engineer > >Energy Sciences Network (ESnet) > > hmmmmm.... every port I've installed has fetched the dependencies which are > also listed with the port info. You misunderstand. Any time you install a port, all dependencies are automatically installed. But, when you install a new version of a port, you will not get updated dependencies unless you are VERY careful in walking the tree by hand. This is especially critical when updating ports like gnome that have many complex and version critical dependencies. R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message