- Package:
- qa.debian.org
- Source:
- qa.debian.org
- Submitter:
- Josh Triplett
- Date:
- 2026-02-02 04:43:03 UTC
- Severity:
- wishlist
It'd be quite handy to have package contents information in UDD. Columns, in addition to a unique package ID foreign-keyed to the packages table: filename owner group mode - Josh Triplett
Hi Josh, What is your use case for that? This would add quite a lot of information to UDD, so I'd like to make sure it's really useful before implementing this. Lucas
I'd like to search for files shipped in packages with user:group other than root:root, or with modes other than 644 or 755 (as appropriate for file/directory). Right now, that would require downloading and unpacking every package. That actually suggests a useful compression technique: for owner, group, and mode, you could provide a table or tables that *only* list unusual files/directories that have user:group other than root:root or a mode other than 644/755. The rest of the data could then be synthesized with an appropriate view. That would eliminate the metadata entries for the vast majority of the files in Debian packages, while transparently providing all the same data. I'd also like to search for packages that contain empty directories (easily found by looking for directories without containing files) and correlate that with whether any other package ships files in that directory (or if it's provided solely for users). And I'd like to search for things like filename conflicts and compare them to package metadata; for instance, do packages that ship the same filename conflict or not, and do the versions of the conflict match the versions that ship the same file? (That won't be perfect, since it can't take diversions into account, which are unfortunately still programmatic in maintainer scripts rather than being declarative.) - Josh Triplett
these could be found by inspecting the Contents file - this is how it is done in [1]. This is today integrated in piuparts, code to find packages sharing a path name can be found in [2]. [1] https://qa.debian.org/dose/file-overwrites.html [2] https://alioth.debian.org/scm/browser.php?group_id=30965
Sure, though that's not correlated by version and package metadata the way UDD is. But yeah, that use case is much lower priority for me than the metadata issue (user/group/mode). - Josh Triplett
Wouldn't this one be better solved as a lintian check? Lucas
The conflicts item? Lintian doesn't always have multiple packages around for a simultaneous check. The user/group/mode item? No, I'm not looking to write a specific lintian check there; I'm trying to evaluate usage of specific users/groups/modes as part of trying to find better ways to handle them. - Josh Triplett
gzipped, 400MB un-gzipped). In order to have a complete check whether two packages can be installed together one also needs dose-debcheck installed, though the latter could probably be approximated by running apt-get in simulation mode (which might produce false negatives).
Hallo, Ich habe dir eine Mail geschickt, aber keine Antwort von dir, warum? Eddie
Including package contents information in the UDD would be very helpful: - PostgreSQL db queries are faster and more flexible than apt-file - Can search across all supported architectures - Can be used for websites/services like packages.d.o without manually downloading and parsing Contents files Instead of the owner, group, mode columns suggested in the original bug report, just having the filename would be enough (as that's all there is in the archive's Contents files). Something like: - package - section - distribution - release - component - filename Thanks, Maytham