# Start from scratch cd /usr sudo rm -fr ports # Checkout ports sudo svnlite checkout https://svn.FreeBSD.org/ports/head /usr/ports # Update ports tree sudo svnlite update /usr/ports # Find old ports pkg version -l "<" # Find the path to a particular port pkg search -o pkgname # Find unnecessary ports pkg autoremove # List all files contained in an installed port pkg info -l pkgname # Find which port provide an installed file pkg which /path/to/my/file