Ricardo Mones ([info]mones) wrote,
@ 2008-06-11 11:22:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current mood: amused
Entry tags:bash, libraries

Command of the day

for d in `ldd /usr/local/bin/claws-mail | cut -d\( -f1 | cut -d\> -f2 | sed 's,\s,,'`; do dpkg -S $d 2> /dev/null; done | cut -f1 -d: | sort -u | xargs | for p in `cat`; do dpkg-query -W $p; done


Nice, isn't it? ;-)

For the curious: it gives all package names and versions of the libraries a binary depends upon (recursively, per ldd, and errors discarded, so beware!).



Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…