command to find out what package manager installed this executable/file
2
votes
0
answers
380
views
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.
Asked by allanlaal
(852 rep)
Oct 19, 2022, 12:06 AM
Last activity: Dec 14, 2023, 05:32 AM
Last activity: Dec 14, 2023, 05:32 AM