Batch upgrade all ports
portmaster -G -a
Check all ports dependecies

In cases where the dependecies needs fixing, as in they are installed, but the ports database needs to know they are there, you can have portmaster upgrade the datbase:

portmaster -y --check-depends
Check ports database

This checks for any ports that the database says are installed, but are not.

portmaster -y --check-port-dbdir