freeBSD ports portsnap fetch portsnap extract portsnap update upgrading ports using portupgrade cd /usr/ports/ports-mgmt/portupgrade make install clean # portupgrade -ai When you run portupgrade -a, portupgrade will begin to upgrade all the outdated ports installed on your system. Use the -i flag if you want to be asked for confirmation of every individual upgrade # portupgrade -R firefox If you want to upgrade only a certain application, not all available ports, use portupgrade pkgname . Include the -R flag if portupgrade should first upgrade all the ports required by the given application. # portupgrade -PP gnome2 To use packages instead of ports for installation, provide -P flag. With this option portupgrade searches the local directories listed in PKG_PATH , or fetches packages from remote site if it is not found locally. If packages can not be found locally or fetched remotely, portupgrade will use ports. To avoid using ports, specify -PP . /usr/local/sbin/pkgdb upgrading p...