Finding Which Repository Files Provide Required Libraries
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
repoquery would what would be used instead. Its syntax is slightly different ldd /bin/ls | awk ‘/=>/{print $(NF-1)}’ | while read n; do dnf repoquery
–whatprovides $n; done | uniq
Great, thank you!
I did download dnf for the script. Am I correct in assuming this functionality is not available with yum or rpm?
yum-utils includes a separate `repoquery` command which is similar.