From Salix OS
a tool that finds dependencies of slackware packages
depfinder scans Slackware packages and outputs a list of their dependencies. The dependency list can be output to stdout, to a comma separated list in a .dep text file or to a slack-required file with or without version information.
As of version 1.0.0, depfinder supports x86_64 systems. This can be enabled by passing an extra parameter in the installation scripts (take a look in the INSTALL file in the source tarball for more info). Since 1.0.0, depfinder also supports the creation of OR statements in dependency lists with the use of the "|" operator that could be interpreted by any package manager that supports it, like slapt-get/gslapt.
depfinder is really fast; its speed is mainly due to the C++ code that is used in depfinder to find in which package each individual library is included. depfinder also has support for running multiple jobs in parallel that makes it a lot faster when used with multiple CPUs/cores.
depfinder supports detecting dynamically linked libraries of binary files, which covers all files compiled with C, C++ etc. It also supports detection of Python dependencies.
Apart from basic shell commands, like ls, sed, touch etc, depfinder requires python if you're going to use it to detect Python dependencies. You should have the gcc-g++ compiler installed if you want to compile depfinder from source.
depfinder also supports localization through gettext. Apart from English, which is the default language, depfinder is available in other languages too.