Date: Mon, 10 Dec 2001 15:59:24 -0800 From: "Kevin Oberman" <oberman@es.net> To: "Richard E. Hawkins" <dochawk@psu.edu> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: multiple versions of ports somehow installed. Message-ID: <200112102359.fBANxOd04500@ptavv.es.net> In-Reply-To: Your message of "Mon, 10 Dec 2001 18:44:21 EST." <200112102344.fBANiMl42824@fac13.ds.psu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112102359.fBANxOd04500>