FreeBSD portupgrade

Red Antiqua has a good summary of doing FreeBSD portupgrades.

Here's the meat for posterity:
FreeBSD portupgrade
 
 
 
 

This is a quick tutorial how to update your FreeBSD ports collection using portupgrade.

First time - includes installing the needed tools:

# Install "text mode" cvsup
cd /usr/ports/net/cvsup-without-gui
make install clean

# Synchronize your ports collection
/usr/local/bin/cvsup -g -L 2 -h cvsup2.freebsd.org /usr/share/examples/cvsup/ports-supfile

# Install portupgrade              
cd /usr/ports/sysutils/portupgrade
make install clean

# Update the ports database
/usr/local/sbin/portsdb -Uu

# List the installed ports which need upgrading
/usr/local/sbin/portversion -l "<"

# Upgrade the installed ports
/usr/local/sbin/portupgrade -arR

# Run
# /usr/local/sbin/pkgdb -F
# if you are prompted to.

# Run
# /usr/local/sbin/pkgdb -fu
# if everything goes wrong.

Just upgrading ports - assumes that cvsup-without-gui and portupgrade already are installed:

# Synchronize your ports collection
/usr/local/bin/cvsup -g -L 2 -h cvsup2.freebsd.org /usr/share/examples/cvsup/ports-supfile

# Update the ports database
/usr/local/sbin/portsdb -Uu

# List the installed ports which need upgrading
/usr/local/sbin/portversion -l "<"

# Upgrade the installed ports
/usr/local/sbin/portupgrade -arR

# Run
# /usr/local/sbin/pkgdb -F
# if you are prompted to.

# Run
# /usr/local/sbin/pkgdb -fu
# if everything goes wrong.

Category: