Created
February 27, 2022 22:25
-
-
Save AlexRogalskiy/32cbccd1e2b685659dd4fc7ac7b9f535 to your computer and use it in GitHub Desktop.
Get dependencies of compiled stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install -y apt-file findutils mawk binutils | |
find -type f | xargs -L1 file | awk -F: '/ELF/{print$1}' | xargs -L1 readelf -d | awk '/\[[a-zA-Z_-\.0-9]*\]/{sub(/.*\[/,"");sub(/\].*/,"");print$0}' | xargs -L1 apt-file search | awk -F: '!/-dbg|-i386|lib32|gcc-snapshot/ && !($1 in a){a[$1];print $1}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment