File: objdump-needed.sh

package info (click to toggle)
massxpert 7.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 71,188 kB
  • sloc: cpp: 47,431; xml: 23,090; javascript: 22,231; python: 501; sh: 272; makefile: 88
file content (14 lines) | stat: -rwxr-xr-x 187 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh


if [ ! -f "$1" ]
    then
    echo "Provide full path to binary file"
    exit 1
fi

for i in $(objdump -p $1 | grep NEEDED | sed 's/ *NEEDED *l/l/')
  do 
  dpkg -S $i
done