Find missing libs with repoquery

Not sure how I didn’t learn about this until today. Anyways, if you end up with missing libs on CentOS/RedHat, use repoquery to find missing libs.

For example, I had an issue today where docker required but this wasn’t installed.

repoquery -q -f */*

The above is quering (-q) for files (-f) matching the pattern (*/*). The first star is important since the query is looking for matches against the full paths of the files within the RPMs stored on the various YUM repos your system is aware of.

…and the response was:


The solution in this case was to yum install libtool-ltdl. Thanks repoquery!