Subject: Re: library dependencies ?
To: Space Case <wormey@eskimo.com>
From: Frederick Bruckman <fb@enteract.com>
List: current-users
Date: 06/02/2001 18:55:21
On Sat, 2 Jun 2001, Space Case wrote:
> Does anyone have/know of a tool that can check the library dependencies of
> executables, and flag those whose libraries are missing?
>
> Reason is, I have cleaned out the excess minor versions of the shared libs,
> but some of them have several excess major versions, and I'd like to get
> rid of those, too.
Hope you know that you have to keep the old ELF minors, once mac68k
switches to ELF...
> Example:
> libcurses.so.2.5 <- wanna go away
> libcurses.so.3.5 <- gone
> libcurses.so.3.6 <- gone
> libcurses.so.3.7 <- wanna go away
> libcurses.so.4.0 <- gone
> libcurses.so.4.1 <- gone
> libcurses.so.4.2 <- keeper
> What depends on 2.5 or 3.7?
How about...?
for e in /usr/*/bin/*
do
ldd $e 2> /dev/null |
egrep -q "libcurses\.so\.((2\.5)|(3\.7))" &&
echo $e
done
Frederick