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...
- Upgrade to php52 on FreeBSD By default, after portsnap to latest FreeBSD port tree, it...
- Install MySQL5 on Mac OSX With Darwin Port Before installing MySQL5, please be sure you have Darwin Port...
- How to Find Your Closest Anycast DNS Server with Dig Most ISP deploys Anycast DNS server on their network and...
- Enable SMTP Port 587 on Exim Most of the ISP block port 25 for outgoing SMTP....
- cron & time zone after changing time zone (tzsetup), restart cron (/etc/rc.d/cron restart) to...
- Change or Set User Password in FreeBSD If you notice, during FreeBSD installation, it doesn’t have a...
- How to Change Hostname in Unix FreeBSD We have interesting hostname for our all our servers. Some...

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 [...]