freebsd port update, monitor outdated port with portsnap
we have about 15 freebsd servers with us, ranging from freebsd 4.7 to freebsd 7. most of the server need to be patched regularly, except servers that are not accessible from public network. one of the method we use to monitor outdated port is using portsnap cron, it update the port tree base on the date/time you configured on crontab, and when there is any port is outdated, it will notify us through email from system message.
setting up port tree update on cron
fire up your crontab with crontab -e and add this line;
0 7 * * * portsnap -I cron update && pkg_version -vIL=
this will update the port tree every morning 7am and if there is any output from the command pkg_version -vIL=, it will send an email to system root.
alias root to your email address
if you wish to receive the notification through your email, on /etc/aliases file, alias root to your_email_address, remember to run newaliases command after update the file.
Email notification from different servers.

Port that outdated and need to be upgraded.
Related posts:
- FreeBSD Portsnap & CVSup I just tried FreeBSD Portsnap, another tools to maintain FreeBSD...
- FreeBSD Port: Error Upgrading Perl 5.8.9 Usually I perform portupgrade daily on some of my FreeBSD...
- MySQL Quick Installation on FreeBSD Quick installation of MySQL Database on FreeBSD Server. Make sure...
- FreeBSD CVSUP Assertion Error I have been having problems running port cvsup on one...
- Install MySQL5 on Mac OSX With Darwin Port Before installing MySQL5, please be sure you have Darwin Port...
- ssh dynamic port tunnelling useful when using insecure links with a ssh server you...
- Check DNS Record with Dig Command Check DNS Record with Dig Command How do you find...
- Cacti Spine Source Installation Error on FreeBSD Just noticed FreeBSD’s port still using old version of spine,...
- Install MySQL5 Server on Apple Mac Leopard with MacPorts Previously I wrote a post on “installing postgresql 8.2 on...
- Windows Update hacked! I have (A) few of my friend(s) asked me why...

June 12th, 2009 at 10:41 am
[...] on FreeBSD Server. Make sure you are on the latest FreeBSD Port Tree with portsnap, refer to keeping update ports. If you want to browse through what version of MySQL is available in [...]