On Mon, 2002-11-25 at 16:40, Mike Westkamper wrote:
> 
> I am building an image for loading a Linux based board via the network. It
> must be the smallest it can be. I've done a lot to minimize the size,
> including doing ldd's on everything to develop a list of what libraries I
> must include. It is very error prone and everytime I change something I have
> to do it all over again.
> 
> Does anyone know of a script or program that will transverse an image
> directory tree from a known point and either list the libraries required or
> copy them from some location to the image directory tree?
> 
> Thanks in advance for any direction...
> 
> Mike
> 
>

hmm  this might get you close.  Probably a more robust way to do it but
it looks like it works on my machine.

cd to the directory that you want to start from first of course
 
find -type f |xargs ldd |awk '/\s/{print $3}'|sort |uniq

on a failry new RHL 7.3 machine I get the following:
[bhughes@compaq3 bin]$ find -type f |xargs ldd |awk '/\s/{print
$3}'|sort |uniq

/lib/ld-linux.so.2
/lib/libcrypt.so.1
/lib/libc.so.6
/lib/libdl.so.2
/lib/libm.so.6
/lib/libnsl.so.1
/lib/libpam_misc.so.0
/lib/libpam.so.0
/lib/libproc.so.2.0.7
/lib/libpthread.so.0
/lib/libresolv.so.2
/lib/librt.so.1
/lib/libtermcap.so.2


HTH

Brety





-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to