Update FreeBSD base system and ports
Lars Sommer, 2009-10-06, using sources and manual rebuilding
Updated at 2010-01-25, using freebsd-update and portsnap instead
Update base system:
freebsd-update fetch
freebsd-update install
—
Update ports:
portsnap fetch update
portversion -l “<”
portaudit -Fda
portupgrade -a
portaudit -Fda
—
New releases update:
See http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html
—
Crontab can have this line to automatically do freebsd-update fetch, and send root a mail if any updates are available:
@daily root freebsd-update cron
And this to check for port updates:
@daily root portsnap fetch update && portversion -l “<“|mail -s “Port updates” root