Debian’s package management landscape is made up of databases for tracking packages (which is kept in
/var/lib/dpkg), package-related tools for package management, and package files (or
The package database for Debian’s
dpkg scheme is located in
/var/lib/dpkg. Typically, three main files are in this directory:
status file contains the states for each package that’s installed. The
available file is a list of the packages available from the package sources for update, and the
diversions file is the list of diverted packages, or packages that weren’t installed to the default locations for whatever reason.