| Ricardo Mones ( @ 2008-06-11 11:22:00 |
| Current mood: | |
| 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!).