From owner-freebsd-questions Mon Oct 7 14:34:22 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 B96CB37B401 for ; Mon, 7 Oct 2002 14:34:20 -0700 (PDT) Received: from postal3.es.net (postal3.es.net [198.128.3.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E18F43E4A for ; Mon, 7 Oct 2002 14:34:20 -0700 (PDT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal3.es.net (Postal Node 3) with ESMTP id MUA74016; Mon, 07 Oct 2002 14:34:19 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Postfix) with ESMTP id 8D1B55D06; Mon, 7 Oct 2002 14:34:18 -0700 (PDT) To: Chris Snyder Cc: questions@FreeBSD.ORG Subject: Re: Proper way to upgrade packaes from ports In-reply-to: Your message of "Mon, 07 Oct 2002 17:23:40 EDT." <3DA1FB5C.3040700@psydeshow.org> Date: Mon, 07 Oct 2002 14:34:18 -0700 From: "Kevin Oberman" Message-Id: <20021007213418.8D1B55D06@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:23:40 -0400 > From: Chris Snyder > Sender: owner-freebsd-questions@FreeBSD.ORG > > Kent Stewart wrote: > > > I have usually done a pkg_version -c and know what needs to be updated. > > I use the pkg_version -c method as well-- it seems so much simpler than > portupgrade, but am I missing something and/or running the risk of > breaking things? > > FWIW I think that keeping your ports/packages up-to-date could be > covered better in the Handbook, considering how important it is in terms > of security. There's no mention of either portupgrade or pkg_version in > the ports/packages coverage. The -c option to pkg_version is NOT safe. The message it puts out makes this clear. I think Bruce said that he was planning on pulling it once portupgrade stabilized because it was just too dangerous. It has no intelligence on the dependencies and does not always do things in the proper order. To do this properly you need to completely graph all dependencies and their versions and update from the bottom of the graph. I think it was Bruce's comments on this that led knu to write portupgrade. I'm sure that portupgrade would be in the base system except for the dependency on ruby, just as cvsup would if not for the Mobula III requirement. But both are nearly essential to maintaining a robust system. 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