plocate-build(8)

πŸ“¦
version 1.1.25 Β· 3 versions
, in alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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-size SIZE β€” 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-visibility FLAG β€” set the "require file visibility before reporting it" flag in the generated database to FLAG. the default is yes, even for an mlocate database with the flag originally set to no (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 πŸ‘‘πŸ’–