Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- for libpath in `ldd src/warzone2100 | pcregrep -o1 '^\t\S+ => (\S+)'`; do
- printf '%s\n' $libpath;
- package=`dpkg -S $libpath | pcregrep -o1 '^([^:]+[^:]+)'`
- if test -z "$package"
- then
- printf 'Not found\n'
- else
- dpkg-query -W -f='\t${db:Status-Status} ${binary:Package} ${Version}\n' $package
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement