FreeBSD pkg commands

List installed packages

pkg query %n-%v 

Search manually installed packages

pkg query -e '%a = 0' %o