I don't see where are the database files checked by dpkg-query -S
in its manpage. Could anybody let me know where it is? Thanks.
I don't see where are the database files checked by dpkg-query -S
in its manpage. Could anybody let me know where it is? Thanks.
It depends upon exactly what kind of query you do, but all of
dpkg
's database files are under/var/lib/dpkg
. They are often plain text files.For example, a simple
dpkg-query -l
will find what it needs in/var/lib/dpkg/status
:Update: Question has been changed from simple
dpkg-query
to specifydpkg-query -S
. So to answer that:As mentioned, exactly where
dpkg-query
looks depends upon what type of query you do, but all of its information exists below/var/lib/dpkg/
. Fordpkg-query -S
queries for example, it examines every*.list
file in/var/lib/dpkg/info/
: