find dependency of ELF binary for library
itn2002-lj at infoseek.jp
Mon Oct 2 17:26:32 UTC 2006
I make bash script for finding ELF binary depending on specified library.
and output the packages the files belongs to.
It's useful to find influence of updating library.
Its usage is:
findelfdepend.sh [options] library_name [dirs]
library_name is exactly one and must be set.
not search recursive.
output format is "package_name filename"(depends on pkginfo)
-l:search library described in /etc/ld.so.conf and /lib /usr/lib
-b:search $PATH directories
-v:verbose output to stderr
It requires ldd(glibc),file command ,and some basic applications
(bash,coreutils,sed and so on).
In fact,this script is very slow and not smart,but simple.
If there is the similar one,please take no notice;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1039 bytes
Desc: not available
More information about the CRUX