plocate-build(8)
β¨ plocate-build(8) β System Manager's Manual β¨
okay bestie, welcome to the plocate-build page, section 8 of your system manager's manual π
πΈ NAME πΈ
plocate-build β generate index for plocate
π¦ SYNOPSIS π¦
plocate-build [OPTION]... MLOCATE_DB PLOCATE_DB
π DESCRIPTION π
so here's the tea, bestie π plocate-build creates an index for plocate(1), built from an index that was generated earlier by updatedb(8) from the mlocate(1) package.
ngl though, most users would way rather just use plocate's own updatedb(8), because that's more direct β it's giving main character energy and skipping the middleman β¨
β οΈ real talk: if PLOCATE_DB already exists, it will be overwritten β and not atomically, so like, no undo button, okay? π
one more thing: the file is created such that it is not world-readable, because the final access check is done by plocate(1) during the search. privacy slay π
π OPTIONS π
-b,--block-sizeSIZE β create blocks containing SIZE filenames each, compress them together, and treat them as the same element in the posting lists. this makes the index smaller (because the compression algorithm gets more context to work with, and because there are fewer elements in each posting list), but it also makes posting lists less precise, moving more work to weeding out false positives after posting list intersection.
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 π«Ά
-p,--plaintextβ treat the input as plain text, with entries delimited by newlines, instead of an mlocate database. simple as that, icon π-l,--require-visibilityFLAG β set the "require file visibility before reporting it" flag in the generated database to FLAG. the default isyes, even for an mlocate database with the flag originally set tono(although the latter may change in the future β so like, don't come for me if it does π)--helpβ print out usage information, then exit successfully. we love a clean exit β¨--versionβ print out version information, then exit successfully. also a clean exit, also iconic π
π AUTHOR π
Steinar H. Gunderson <steinar+plocate@gunderson.no>
β SEE ALSO β
plocate(1), /etc/cron.daily/plocate (which is called update-plocate.sh in the source distribution)
and that's the whole page, bestie π¦ this one's from plocate-build, dated Oct 2020 β go forth and build those indexes, you absolute legend ππ
π¦ where this page comes from
- alpine 3.24: plocate-doc 1.1.24-r2 Β· GPL-2.0-or-later
- arch rolling: plocate 1.1.25-1 Β· GPL-2.0-or-later AND GPL-2.0-only
- centos-stream 10: plocate 1.1.22-11.el10 Β· GPL-2.0-or-later AND GPL-2.0-only
- debian trixie: plocate 1.1.23-1 Β· GPL-2.0-or-later
- fedora 43: plocate 1.1.23-4.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only
- fedora 43: plocate 1.1.25-2.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only
- fedora 44: plocate 1.1.24-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only
- fedora 44: plocate 1.1.25-2.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only
- nixos 26.05: plocate 1.1.24
- nixpkgs unstable: plocate 1.1.25
- opensuse-leap 16.0: plocate 1.1.23-bp160.1.2 Β· GPL-2.0-only
- opensuse-leap 16.0: plocate 1.1.23-bp160.1.2 Β· GPL-2.0-only
- opensuse-leap 16.0: plocate 1.1.23-bp160.1.2 Β· GPL-2.0-only
- opensuse-leap 16.0: plocate 1.1.23-bp160.1.2 Β· GPL-2.0-only
- ubuntu questing: plocate 1.1.23-1ubuntu1
- ubuntu resolute: plocate 1.1.23-1ubuntu3 Β· GPL-2.0-or-later
- ubuntu stonking: plocate 1.1.24-1ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms