From owner-freebsd-questions Mon Oct 7 13: 7:43 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 834F637B401 for ; Mon, 7 Oct 2002 13:07:41 -0700 (PDT) Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00FCF43E75 for ; Mon, 7 Oct 2002 13:07:41 -0700 (PDT) (envelope-from kstewart@owt.com) Received: from owt.com (owt-207-41-94-232.owt.com [207.41.94.232]) by rutger.owt.com (8.9.3/8.9.3) with ESMTP id NAA16373; Mon, 7 Oct 2002 13:06:44 -0700 Message-ID: <3DA1E952.5040404@owt.com> Date: Mon, 07 Oct 2002 13:06:42 -0700 From: Kent Stewart User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, es-mx MIME-Version: 1.0 To: Kevin Oberman Cc: "Jack L. Stone" , John Kozubik , Rus Foster , questions@FreeBSD.ORG Subject: Re: Proper way to upgrade packaes from ports References: <20021007195404.F40B95D06@ptavv.es.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 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. Some of these are handled when I do a "-Rufp". It starts at the port and handles all of its dependancies. This isn't a good idea if XFree86 is one of the dependancies. Then -x option is supposed to take care of that but I have never used it. I have usually done a pkg_version -c and know what needs to be updated. When something disappears, which portupgrade does not handle, I delete the port and the new dependancies and start over. FWIW, I usually portupgrade on one system and I always create a package on that system. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message