#!/bin/bash #=================================================================================== # # FILE: findpkg.sh # # USAGE: findpkg.sh filename # # DESCRIPTION: Find all required libraries and also all Debian software # packages which contain the libraries (or the binary) # At the end, display list of (unique) packages, sorted # alphabetically # # OPTIONS: --- # AUTHOR: # COMPANY: # VERSION: 1.0 # CREATED: # REVISION: #=================================================================================== progname=$1 if ! [ -x $progname ]; then echo $0: $progname nicht ausfuehrbar. exit 1 fi ldds=$( ldd $progname ) if [[ "$ldds" =~ .*not\ a\ dynamic.* ]]; then echo $0: $progname ist kein dynamisches Executable. exit 1 fi files="" # Liste aller Dateien packages="" # Liste alle Pakete