update-dlocatedb(8)
π update-dlocatedb(8) π
okay so bestie, welcome to update-dlocatedb β that's the little helper from the dpkg suite that keeps your dlocate databases looking cute. grab a boba, we're doing filesystem indexing π§β¨
β¨ NAME β¨
update-dlocatedb β generates a plain text database of installed files for dlocate, no cap π
πΈ SYNOPSIS πΈ
update-dlocatedb [option...]
π¦ DESCRIPTION π¦
So here's the tea π: update-dlocatedb builds you a plain text package contents listing, and it pulls that straight from the files sitting in /var/lib/dpkg/info/*.list. That's it. That's the whole job. Iconic behaviour, honestly. π
And like β this program is usually called from cron.daily, so it just kinda does its thing in the background while you sleep. main character energy but make it scheduled. π΄β¨
π OPTIONS π
-pβ update the packages list only. just the packages, bestie.-jβ update the files list only. just the files this time.-bβ update both. this is the default, so if you say nothing you get everything π-hβ show this help message. the "help me bestie" button π«Ά
π FILES π
/etc/default/dlocateβ the configuration file with default options. rn the only option in there is whether to enable/disable gzip compression of the dlocatedb file. tiny file, big responsibility. π§/var/lib/dpkg/infoβ the directory holding all the dpkg file lists. this is where the source material lives. π/var/lib/dlocate/dlocatedbβ the plain text listing of all files belonging to all packages (optionally compressed). this is the star of the show β¨/var/lib/dlocate/dpkg-listβ a listing of all packages known to dpkg.
This one holds the reformatted output output of dpkg -l. (yes, the original really does say "output" twice, and honestly? we respect the copy-paste moment. π) The file format is four fields separated by tabs:
status<TAB>package-name<TAB>installed-version<TAB>synopsis
Also ngl, the installed-version field may contain an architecture, like e.g. :arch. so watch out for that when you're parsing π
π SEE ALSO π
dlocate(1) β go read that one next, bestie, it's the whole point of this database π«Ά
and that's the page!! version 1.18.1, dated 2026-05-30, straight from the dpkg suite. stay slay, stay indexed, and remember: it's giving cron.daily πππ
π¦ where this page comes from
- ubuntu stonking: dlocate 1.18.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms