Portupgrade Timesaver
Every once in a while I run across a machine that is not as fast as I would like it to be.
As you know upgrading ports by having portupgrade compile them from source can take quite a while.
FreeBSD tries to compile as many of the ports as they can and then put the packages on their ftp server.
export PACKAGESITE=ftp://ftp.$MIRROR.freebsd.org/pub/FreeBSD/ports/i386/packages-$VERSION-stable/Latest/
Replace $MIRROR with your country code, and $VERSION with your version of FreeBSD, ie 7.
portupgrade -PP portname(To upgrade one port)
or
portupgrade -PPa(To upgrade all your ports)
The -PP will force portupgrade to use only compiled packages, it will fail if there is no compiled version of that port.
portupgrade -P portname(To upgrade one port)
or
portupgrade -Pa(To upgrade all your ports)
Using only one -P will cause portupgrade to try to download the package, but if it fails it will revert to compiling from source as usual.
|