LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > Lumak's Guide to Random Things
User Name
Password

Notices


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

Code:
#!/bin/sh
#
# Find out all the needed dependencies of a binary

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

Comments

  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 10:28 PM.

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