plocate-build(8) | System Manager's Manual | plocate-build(8) |
plocate-build - generate index for plocate
plocate-build [OPTION]... MLOCATE_DB PLOCATE_DB
plocate-build creates an index from plocate(1) from an index earlier generated by updatedb(1) from the mlocate(1) package. This is currently the only way to build such an index. If PLOCATE_DB already exists, it will be overwritten (non-atomically). The file is created such that it is not world-readable, as the final access check is done by plocate(1) during the search.
Making this number larger will make linear search (for --regex, or very short patterns) faster, with diminishing returns around 256 filenames per block. However, making it too large will cause more false positives, reducing overall performance for typical queries. The default value is 32. Setting it to 1 makes one (compressed) block per filename.
Steinar H. Gunderson <steinar+plocate@gunderson.no>
plocate(1), /etc/cron.daily/plocate (which is called update-plocate.sh in the source distribution)
Oct 2020 | plocate-build |