I think my previous e-mail lacked a clarification of what is the task about. It's about mapping from a list of SONAMEs to a list of corresponding files on the filesystem. (Which will be later mapped to the list of installed packages.)