upgrading freebsd ports

seems like I’m always needing to look this up. so here.

1. Backup your port data
# cd /var/db
# tar cvfz var.db.pkg.tgz pkg

2. Check port db
# pkgdb -F

3. Updating all the ports
# /usr/local/sbin/portupgrade -ra

[
put this line in /etc/make.conf
# fix that buggy perl_version thang
# THIS WILL NEED TO BE UPGRADED
#     WITH EACH NEW PERL VERSION!
PERL_VERSION=5.8.8
]

4. how do things look?
# pkg_version -L =
reference

About this entry