dep-libs.pl -- Create a Listing Of Dependent Libraries

Resolves the output of ldd for a binary. Intended usage is to figure out the libraries and symlinks which need to be copied/replicated in order to run a program in a chroot environment.

Command Line

dep-libs.pl /fully/qualified/program-name [...]

Runs ldd program-name... and locates the actual symlinks and libraries which are referenced. More than one program-name can be specified, and their library references will be deduplicated. Outputs their fully-qualified names to STDOUT. The output can be collected to a file and used as the input to tar to create a kit which can then be installed in the chrooted environment (the program names will be included as well).

Copyright and License

Copyright (c) 2009 by Fred Morris/Fred Morris Consulting, Seattle, WA, USA

Contact Information

Email: m3047@inwa.net

Telephone: 206.297.6344

Web site: http://www.inwa.net/~m3047/contact.html

License

Licensed under the Perl Artistic License.

User assumes all liability for use and for verifying correct operation. Correct operation is not guaranteed, no warranty is expressed or implied.