- https://en.wikipedia.org/wiki/Dpkg#Database: /var/lib/dpkg/…
- https://en.wikipedia.org/wiki/Rpm_(software)#Local_RPM_installation_database: /var/lib/rpm/…
RPM based environments support verifying and resetting permissions and user/group ownerships of files in a package:
- https://www.cyberciti.biz/tips/reset-rhel-centos-fedora-package-file-permission.html –
But what about Debian based ones? On Debian there is a file for every (installed) package:
That file only includes filenames and directory names (and no details at all). Directories are not marked as directories (as opposed to files). Files within those directories do not necessarily get listed themselves.
That file gets searched for:
dpkg --search” – which Debian package does a given file belong to?
dpkg --listfiles” – which files belong to a given Debian package?
What about the Debian utility
cruft cannot really be able to provide details not contained in that file.
Other Unix-like operating systems: