Re: a script to find broken packages before they break you!

2009-07-29 Thread Frederik Sdun
* Previdi Roberto previdi.robe...@gmail.com [27.07.2009 13:07]: 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)

a script to find broken packages before they break you!

2009-07-27 Thread Previdi Roberto
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) #!/bin/sh for i in $(find /usr/bin/*); do broken=$(ldd $i | grep not

Re: a script to find broken packages before they break you!

2009-07-27 Thread Previdi Roberto
for the script to work you may need to opkg install ldd, if it's not installed by default on your distribution. On Mon, Jul 27, 2009 at 1:06 PM, Previdi Roberto previdi.robe...@gmail.comwrote: ... broken=$(ldd $i | grep not found) ... -- roby

Re: a script to find broken packages before they break you!

2009-07-27 Thread Jeffrey Ratcliffe
2009/7/27 Previdi Roberto previdi.robe...@gmail.com: 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) Nice work! Presumably it

Re: a script to find broken packages before they break you!

2009-07-27 Thread roby
umm i didn't think to this issue.. anyway it should be simple, just add /usr/lib/* to the list of checked binaries.. i'll try it On Mon, Jul 27, 2009 at 9:44 PM, Jeffrey Ratcliffe jeffrey.ratcli...@gmail.com wrote: 2009/7/27 Previdi Roberto previdi.robe...@gmail.com: hello list. I wrote this