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:

  1. FreeBSD Port: Error Upgrading Perl 5.8.9 Usually I
  2. MySQL Quick Installation on FreeBSD Quick inst
  3. macports – port common usage update por
  4. FreeBSD – portupgrade bump on vim 7.2 Bump into
  5. FreeBSD – portupgrade rrdtool_1.2.26 Problem :
  6. Check DNS Record with Dig Command Check DNS
  7. Debian – distribution upgrade problem Typically,
  8. How To Fix php5-pcre Ignored Package in FreeBSD Ports I guess mo
  9. FreeBSD – GPG in thunderbird (and also enigmail & pinentry) install e

One Response to “freebsd port update, monitor outdated port with portsnap”

  1. MySQL Quick Installation on FreeBSD | takizo, not takezo Says:

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

Leave a Reply