hello list. I wrote this little script taking inspiration from the powerful gentoo command "revdep-rebuild". It scans all the binary files in /usr/bin and shows the broken ones (the ones linking non existent library)<br>
<br><span style="font-family: courier new,monospace;">#!/bin/sh</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">for i in $(find /usr/bin/*); do</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> broken=$(ldd $i | grep "not found")</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> if [ "$broken" != "" ]; then</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> echo $i: $broken</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> fi</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">done</span><br><br>i called it "/usr/local/bin/revdep-scan"<br>when you run it it prints an output like this:<br><br><span style="font-family: courier new,monospace;">/usr/bin/fsousaged: libfsoframework.so.0 => not found</span><br style="font-family: courier new,monospace;" clear="all">
<br>i have also seen that you can issue an "opkg search missing_lib_path" to find the package to reinstall, but you must pass the whole path, like "/usr/lib/<span style="font-family: arial,helvetica,sans-serif;">libfsoframework.so.0</span>" for it to work, so i'm not able to guess it automatically (i could just try /usr/lib ...)<br>
-- <br>roby<br>