logoalt Hacker News

filterfishtoday at 4:29 AM1 replyview on HN

Looking up the binary in the package management system would also provide another source of useful information. Of course this would dramatically increase the complexity but would, I think, be useful.

If you could look it up using APT/dpkg first, that would be lovely :-)


Replies

ajbtoday at 9:46 AM

If you have its path, dpkg already has an option to do that: "dpkg -S". Although some extra logic is needed for symlinks.