Help answer threads with 0 replies.
Go Back > Blogs > Lumak's Guide to Random Things
User Name


OK I don't really have a good title yet but I figure I can post works in progress and other tips I've come across or other interesting things.
Rate this Entry

One Liner Dependency Check for existing binaries

Posted 12-03-2008 at 11:15 PM by lumak
Updated 12-03-2008 at 11:16 PM by lumak

I ran across this a while ago and was reminded of it recently. I'm placing it here for safe keeping in case I ever need to do a full install of gnome to compile a program just to find the 26 specific dependencies it needs so that everything else can be uninstalled (did I say gnuCash? you lie! it works on all modern OS's... well except for slackware

# Find out all the needed dependencies of a binary

objdump -x $1 | grep NEEDED
Views 3331 Comments 2
« Prev     Main     Next »
Total Comments 2


  1. Old Comment
    try readelf -d $i | grep NEEDED instead.
    Posted 08-13-2009 at 02:13 PM by sahko sahko is offline
  2. Old Comment
    ldd <binary>
    also works nicely
    Posted 12-19-2009 at 03:45 AM by lumak lumak is offline


All times are GMT -5. The time now is 07:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration