hello list. I wrote this little script taking inspiration from the powerful gentoo command &quot;revdep-rebuild&quot;. 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 &quot;not found&quot;)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        if [ &quot;$broken&quot; != &quot;&quot; ]; 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 &quot;/usr/local/bin/revdep-scan&quot;<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 =&gt; not found</span><br style="font-family: courier new,monospace;" clear="all">
<br>i have also seen that you can issue an &quot;opkg search missing_lib_path&quot; to find the package to reinstall, but you must pass the whole path, like &quot;/usr/lib/<span style="font-family: arial,helvetica,sans-serif;">libfsoframework.so.0</span>&quot; for it to work, so i&#39;m not able to guess it automatically (i could just try /usr/lib ...)<br>
-- <br>roby<br>