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