I would like to install phpmyadmin on a production server, and apt says it will uninstall libgd2.
In this case I know libgd2 is not used, but I've asked myself if in another case I would be able to check if the library is used (and I didn't know how to do that).
So, is there any way to check when, or how, or by whom, a library is used?
Edit: when I say 'being used' I mean accessed or called. Where I work some people use libraries that come with the system on their own programs, sometimes happens that a user asks for a library being installed by it's own name, then I need to install something that disagree with that library and I do not know if the user still uses it.