Linux package managers: permissions, user/group ownerships of files in a package

RPM based environments support verifying and resetting permissions and user/group ownerships of files in a package:

But what about Debian based ones? On Debian there is a file for every (installed) package:

  • /var/lib/dpkg/info/package.list

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:

cruft cannot really be able to provide details not contained in that file.

Other Unix-like operating systems:


Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.