Advertisement
MaX33333

Untitled

Apr 26th, 2022
1,078
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. for libpath in `ldd src/warzone2100 | pcregrep -o1 '^\t\S+ => (\S+)'`; do
  4.     printf '%s\n' $libpath;
  5.     package=`dpkg -S $libpath | pcregrep -o1 '^([^:]+[^:]+)'`
  6.     if test -z "$package"
  7.     then
  8.         printf 'Not found\n'
  9.     else
  10.         dpkg-query -W -f='\t${db:Status-Status} ${binary:Package} ${Version}\n' $package
  11.     fi
  12. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement