portupgrade(1) | portmaster(8) -- which is more effective for large upgrade?
Warren Block
wblock at wonkity.com
Wed Jun 26 22:51:06 UTC 2013
On Wed, 26 Jun 2013, Jeremy Chadwick wrote:
> When rebuilding everything, I have always resorted to this:
>
> rsync -avH /usr/local/ /usr/local.old/
> pkg_delete -a -f
> rm -fr /usr/local/*
> rm -fr /var/db/ports/*
> rm -fr /usr/ports/distfiles/*
> cd /usr/ports/whatever
> make install clean
> {lather rinse repeat until done}
I don't generally rebuild from scratch, but there is a procedure at the
end of the portmaster man page for doing it.
Something that should be mentioned: if you are not deleting and
reinstalling everything, always--yes, always--check the new entries in
/usr/ports/UPDATING first.
More information about the freebsd-stable
mailing list