Created
April 3, 2016 16:08
-
-
Save nicdoye/656aea45901a758942e47df9333ece59 to your computer and use it in GitHub Desktop.
Find all RPMs providing libraries to your custom-built software
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find all RPMs of libraries for binaries in this folder | |
rpm -qf $(ldd * | grep = | awk '{print $3}' | sort -u | grep ^/) | sort -u | |
# Similarly, for all .so files under this folder | |
rpm -qf $(find . -name \*.so -exec ldd {} \; | grep = | awk '{print $3}' | sort -u | grep ^/) | sort -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment