I am looking for a script that would tell me what exactly installed a binary (or other asset) on a (Debianish) Linux system.
Nowadays there are so many package managers (snap, flatpak, pip, npm, composer, conda, brew, clib, cargo) besides apt*/rpm/manual that its a real hassle to find out what exactly installed what and more importantly: what package manager is supposed to keep it up to date.
Use cases
- These days its vital to distinguish between an app installed by the apt mechanism and something installed by snap
- When installing an app, one would prefer to find out if and what installed it before.