I am looking for a way to find for a given LDFLAG, like -lcryptopp
, the distribution package that provides me with that that library, like libcrypto++-dev
on Debian/Ubuntu.
So far, I have looked up these libraries by hand and common sense, and using e.g. aptitude search
, apt-file search
and Google.
However, now I am building a VM in which I want to test-compile all Haskell community packages, and those depend on more C libraries than I can look up by hand.
How would you, somewhat reliably, look up the package by its linking name?
I'm working on Debian-based systems, but also interested in solutions for other distributions. Anything that will make this job easier is appreciated, be it a web service, some tool or database, or smart knowledge about certain files are named.
I am aware that this cannot be fully automated, since two different packages can technically provide libraries with the same name. I'm fine with something that can find most of the packages.