Finding Which Repository Files Provide Required Libraries

Home » CentOS » Finding Which Repository Files Provide Required Libraries
CentOS 4 Comments

I came across the following Ubuntu script to identify which repository files provide libraries required by an app. Is there a rpm alternative to dpk-query that would allow this to run on CentOS/RH?

ldd /bin/zoom | awk ‘/=>/{print $(NF-1)}’ | while read n; do dpk-query -S $n; done | sed ‘s/^\([^:]\+\):.*$/\1/’ | uniq

4 thoughts on - Finding Which Repository Files Provide Required Libraries