Hacker News new | ask | show | jobs
by ajb 177 days ago
If you have its path, dpkg already has an option to do that: "dpkg -S". Although some extra logic is needed for symlinks.