Q: "database too small: /var/db/locate.database"
A :
FreeBSD# whereis locate.updatedb
locate.updatedb: /usr/libexec/locate.updatedb /usr/share/man/man8/locate.updatedb.8.gz
FreeBSD# /usr/libexec/locate.updatedb
>>> WARNING
>>> Executing updatedb as root. This WILL reveal all filenames
>>> on your machine to all login users, which is a security risk.
FreeBSD#