Update FreeBSD base system and ports

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

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>