atom feed5 messages in org.freebsd.freebsd-portsRe: update all installed ports
FromSent OnAttachments
Tim SmithApr 12, 2001 10:14 am 
Bruce A. MahApr 12, 2001 11:32 am 
Akinori MUSHAApr 12, 2001 12:24 pm 
Maxim SobolevApr 13, 2001 1:32 am 
Bruce A. MahApr 13, 2001 8:04 am 
Subject:Re: update all installed ports
From:Bruce A. Mah (bm@FreeBSD.ORG)
Date:Apr 12, 2001 11:32:23 am
List:org.freebsd.freebsd-ports

If memory serves me right, Tim Smith wrote:

Hi. I've read the handbook and the porter's handbook, and have looked at /usr/ports/Mk/bsd.port.*, but still haven't found an answer to my question.

Is it possible, with a simple command or script, to update all of the ports I have installed at once? I mean, I want to make sure that all of the ports that I use are the latest version, but I don't want to install ports that I don't use.

The short answer is: No, there isn't a way, and even if there was, you wouldn't want to do it. Remember, "newer isn't always better".

If anyone has a good way of doing this automatically, please let me know. (I'm using -STABLE, if that matters.)

"pkg_version -v" will help you figure out what's newer.

"pkg_version -c" will generate some scripting stuff that will help you do some of the upgrading (but remember to RTFM to see all the caveats).

Look at the archives for the -ports list to see many messages discussing this problem. :-p

Hope this helps,

Bruce.