Error – database too small: /var/db/locate.database
Locate
is a cool utility that allows you to search through your filesystem quickly thanks to an index database it maintains. It should update this index automatically at midnight (at least on Linux), but sometime you want to do that manually to have an up to date database index immediatelly. Also, if you run into the database too small: /var/db/locate.database
issue, you can fix it with the following command as well:
$ doas /usr/libexec/locate.updatedb
Afterwards, locate
should execute normally.