Port management in FreeBSD

Using portsnap to update ports tree First off, execute the fetch command to fetch the port database. Then extract it into the ports directory and finaly update the ports.
  1. [root@www ~]# portsnap fetch
  2. [root@www ~]# portsnap extract
  3. [root@www ~]# portsnap update
Using portmanager to update and install ports First, install portmanager
  1. pkg_install -r portmanager
To install a new port:
  1. portmanager graphics/gimp
To update all ports:
  1. portmanager -u