Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: a flag to also output files that matches with the package md5sum #155

Open
mbideau opened this issue Feb 17, 2025 · 1 comment
Labels
A-paketkoll Area: paketkoll C-enhancement Category: New feature or request

Comments

@mbideau
Copy link

mbideau commented Feb 17, 2025

Hi, first thanks for sharing this program.

Is your feature request related to a problem? Please describe.

I would like to list all the files that haven't changed (during the check command) so I can exclude them from being backuped.
Right now the output only list changed files and permission denied.

Describe the solution you'd like

Add a CLI flag to also output files that matches their md5sum.

Describe alternatives you've considered

I currently use debsums that allow this (I am on Debian).

@VorpalBlade
Copy link
Owner

This is for paketkoll rather than konfigkoll I assume? This would be doable fairly easy on Arch Linux I believe, I'm not so sure about Debian, since the data there is incomplete. This is something that debsums also suffers from though!

I do have a slower approach used in konfigkoll to get all the data even on Debian, but that involves downloading any missing .deb files to the apt cache and then looking inside the archives (plus caching in a database file to avoid having to recompute everything every time). I never ported this slower approach back to paketkoll as konfigkoll was always my end goal.

Also: None of the tools understand post install scripts. As these are arbitrary shell script code, this is an impossible problem (without actually executing the shell script). On Arch Linux post install scripts tend to be used rather sparingly. Not so on Debian, where they are often used to generate default configuration files.

What is the use case to get the list of unmodified files though?

Contributions are welcome by the way, especially since this is not something I would use myself. Adding the basic version (debsums equivalent) shouldn't be too hard. Porting over the "get all the data" approach would be much more work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-paketkoll Area: paketkoll C-enhancement Category: New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants