LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-13-2011, 08:18 AM   #1
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Rep: Reputation: 35
Question Finding what applications need a library?


Hello

To save space on an embedded Linux, I'd like to check if any application needs a given library.

I guess I could loop through the whole filesystem with "ldd" and compile a list, but I was wondering if there were a better way.

Thank you.
 
Old 04-13-2011, 09:12 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
If you are running a package manager of some sort, then its database will tell you the reverse dependencies, eg for an apt managed system
Code:
apt-cache rdepends package-name
Of course, if you are using a package manager, you shouldn't be ending up with unused libraries in the first place!

If you aren't running a package manager, then scripting a system wide ldd is perhaps the most obvious way to do it; there isn't going to be a database of such dependencies. Well, of course there may be databases for an entire distro, but since you will only have a subset of the applications, that won't help you.

Last edited by neonsignal; 04-13-2011 at 09:15 AM.
 
Old 04-13-2011, 12:42 PM   #3
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Original Poster
Rep: Reputation: 35
Thanks, but although I'm using a package manager to install applications, the files I need to check are part of the Linux image, hence no database.

I'll check how to write a Bash script to ldd through all the binaries.

Thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
finding if a library is linked into my executable knobby67 Programming 7 03-25-2010 05:40 AM
Finding files that relates to certain applications Akatsuki Linux - Newbie 1 01-28-2010 02:13 AM
Finding Corrupt MP3s in Library dlackovic Linux - Newbie 17 04-07-2008 01:17 PM
Finding path of library Ephracis Programming 6 01-08-2008 09:20 AM
finding openssl library? vbsaltydog Fedora 2 07-13-2007 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:32 PM.

Main Menu
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