From owner-freebsd-questions Mon Oct 7 15:39:48 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 35D9F37B401 for ; Mon, 7 Oct 2002 15:39:47 -0700 (PDT) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DB1243E42 for ; Mon, 7 Oct 2002 15:39:46 -0700 (PDT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP id MUA74016; Mon, 07 Oct 2002 15:39:45 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Postfix) with ESMTP id 03BFB5D04; Mon, 7 Oct 2002 15:39:45 -0700 (PDT) To: "Andrew Knapp" Cc: "'Chris Snyder'" , questions@FreeBSD.ORG Subject: Re: Proper way to upgrade packaes from ports In-reply-to: Your message of "Mon, 07 Oct 2002 18:18:22 EDT." <001301c26e4f$737ba530$6501a8c0@antichrist> Date: Mon, 07 Oct 2002 15:39:44 -0700 From: "Kevin Oberman" Message-Id: <20021007223945.03BFB5D04@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 > From: "Andrew Knapp" > Date: Mon, 7 Oct 2002 18:18:22 -0400 > > AFAIK, doesn't portupgrade come with another utility called portversion? > I use portversion -r (for recursive) to figure out what packages I do > need to upgrade. It gives a nice read-out of what to upgrade. Yes, portversion is a part of portupgrade. It should do almost anything pkg_version does except -c. I use "portversion -vL=" to check on what needs updating. But I then usually do "portupgrade -Rra" which will upgrade all ports that are out of date and do so in the correct bottom-up order. portupgrade also includes pkgtools which lets you establish routine options you always use for installing a certain port. For example, the make option to use the MGA driver for a Matrox card instead of the XFree86 driver or to build Galeon with full mozilla. The file /usr/local/etc/pkgtools.conf lets you stop automatic upgrade of some ports and many other things to make keeping ports current quite easy. The biggest down-side is the requirement that I run portsdb -Uu to update the databases after a cvsup of the ports tree. This is a pretty CPU intensive operation and can take a while on an older 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