update-dlocatedb

fast alternative to dpkg -L and dpkg -S

Install

All systems
curl cmd.cat/update-dlocatedb.sh
Debian Debian
apt-get install dlocate
Ubuntu
apt-get install dlocate
image/svg+xml Kali Linux
apt-get install dlocate
Windows (WSL2)
sudo apt-get update sudo apt-get install dlocate
Raspbian
apt-get install dlocate

dlocate

fast alternative to dpkg -L and dpkg -S

Uses GNU grep and text dumps of dpkg's data to greatly speed up finding out which package a file belongs to (i.e. a very fast dpkg -S). Many other uses, including options to view all files in a package, calculate disk space used, view and check md5sums, list man pages, etc.