From owner-freebsd-questions Mon Dec 10 15:59:29 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by hub.freebsd.org (Postfix) with ESMTP id B0D4837B416 for ; Mon, 10 Dec 2001 15:59:26 -0800 (PST) Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (8.10.1/8.10.1) with ESMTP id fBANxOd04500; Mon, 10 Dec 2001 15:59:24 -0800 (PST) Message-Id: <200112102359.fBANxOd04500@ptavv.es.net> To: "Richard E. Hawkins" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: multiple versions of ports somehow installed. In-reply-to: Your message of "Mon, 10 Dec 2001 18:44:21 EST." <200112102344.fBANiMl42824@fac13.ds.psu.edu> Date: Mon, 10 Dec 2001 15:59:24 -0800 From: "Kevin Oberman" 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 Hawk, To use portupgrade, you MUST run "portdb -Uu" after a cvsup so that the portupgrade database is aware of any new ports. This takes quite a while...typically 45 minutes on my 366 MHz PII ThinkPad. You might want to nice(1) it into the background and forget about it for an hour. Once this is done, I usually use "portversion -vL '='" to get a list of what needs upgrading and then "portupgrade -Rr PORTNAME". You don't need a version number and, when multiple ports match PORTNAME, you are prompted for which to upgrade. Unless you specify otherwise, old ports are removed, but old sharable libraries are left. After installing or upgrading a port, you may need to to a "pkgdb -F" to clean up dependency problems. This can happen when code that used to be a port is moved into the base system as bzip2 recently was, or when a dependency can be met by more than one port (e.g. XFree86-4 and XFree86-4-libraries). In the former case you would delete the dependency and in the latter you would change it to the appropriate dependency for your system. Usually this only takes a minute or two. portupgrade(8) is a really nice tool, but it probably needs better documentation, although the man pages are pretty complete. I gleaned everything I know about it be reading them. But they are a LONG way from a tutorial! 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