[CentOS] Finding which repository files provide required libraries

Sun Dec 20 00:37:30 UTC 2020
H <agents at meddatainc.com>

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