Following are commands
Install cvsup to upgrade ports (assuming that you are on server i.e. no X window
Code:
# cd /usr/ports/net/cvsup-without-gui
# make
# make install
# make clean
Update ports tree src so that you can install latest versions of applications:
Code:
# cp /usr/src/share/examples/cvsup/ports-supfile /tmp/ports-supfile
# vi /tmp/ports-supfile
Find CHANGE_THIS.FreeBSD.org and replace with cvsup3.FreeBSD.org
Code:
# /usr/local/bin/cvsup -g -L 2 /tmp/ports-supfile
# cd /usr/ports
# make fetchindex
Now install portupgrade:
Code:
# cd /usr/ports/sysutils/portupgrade
# make
# make install
# make clean
# pkgdb -F
And you are done. Please read freebsd handbook and man page for more.