man locate.updatedb
you run it as
Code:
sudo /usr/libexec/locate.updatedb
anytime you wish it updated.
It normally is on a cron and mostly runs once a week. But will not run if the machine is down at the specified time/date.
To prevent this, add anacron.
/var/db/locate.database must exist, touch if needed and chown root:wheel, chmod 444.