what-does-this-depend-on 229 B

1234567891011
  1. #!/bin/bash
  2. # GPLv3+ see COPYING.GPL
  3. FOO=`which $1`
  4. for x in `ldd $FOO | awk -F' ' '{print $3}' | grep -i '/'` ;
  5. do
  6. dpkg -S $x >> /tmp/mydeps;
  7. done ;
  8. cat /tmp/mydeps | awk -F':' '{print $1}' | sort | uniq;
  9. rm /tmp/mydeps;