Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Jul 2014, 02:44
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Reverse LDD (reverse dependency checker)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
sc0ttman


Joined: 16 Sep 2009
Posts: 2372
Location: UK

PostPosted: Sat 19 Feb 2011, 08:46    Post subject:  Reverse LDD (reverse dependency checker)
Subject description: find all apps which use the selected lib
 

Reverse-ldd

The 'ldd' command allows you to find the libs used by a particular program.
This is the reverse.

This tool allows you to right click on a lib (.so) file (in /lib, /usr/lib, /usr/local/lib, etc).
You can then find out which applications or programs are using the chosen lib file.

Lib files are things like /usr/lib/libpango.so.1.0 and so on....

This tool will (after a short wait) present you with a list of the apps which depend on your chosen lib, in your default text editor. Smile

It requires tclsh (the tcl/tk shell) and of course therefore tcl/tk itself.
But don't worry, this is included in many Puppies by default.

And even if not, I have packaged "jimsh" in the pet file, which is a tiny tcl interpreter (61kb).

Warning!! This will replace "tclsh" with a link to jimtcl in /usr/bin!!
Backup /usr/bin/tclsh first (if you have it), before you install this!

NOTES:

You can type 'reverse-ldd /path/to/lib' in the terminal to run it that way...

This was built on puppy 4 (for Puplite) and regarding some threads around elsewhere, I'd thought I better share Wink
rldd.jpg
 Description   screenshot of the ROX right click option
 Filesize   38.39 KB
 Viewed   1207 Time(s)

rldd.jpg

reverse-ldd.pet
Description  reverse ldd
pet

 Download 
Filename  reverse-ldd.pet 
Filesize  78.3 KB 
Downloaded  346 Time(s) 

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search

Last edited by sc0ttman on Sat 16 Apr 2011, 08:15; edited 1 time in total
Back to top
View user's profile Send private message 
trapster


Joined: 28 Nov 2005
Posts: 1999
Location: Maine, USA

PostPosted: Sat 19 Feb 2011, 10:57    Post subject:  

Quite handy!
Thank you.

_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Slacko AND lupu52 w/ fluxbox
Back to top
View user's profile Send private message Visit poster's website 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Sun 20 Feb 2011, 15:59    Post subject:  

Thanks. Sounds just like what I have wanted.
_________________
adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
Back to top
View user's profile Send private message Visit poster's website 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Sun 20 Feb 2011, 20:23    Post subject:  

Another (simple) way is to just create an LDD list, and then search it for a particular lib.

USAGE: dll-finder [app-dir]
note: edit "ED" to preferred editor
Code:

#!/bin/sh

[ "$1" == "" ] && echo "USAGE: dll-finder [ app directory ]" && exit
ED="vim"

DIR="$1"
[ -f /tmp/files ] && rm /tmp/files
[ -f /tmp/ldd-apps ] && rm /tmp/ldd-apps
cd "$1"
sudo ls >>/tmp/files
while read line; do
VAR="$(sudo ldd "$line")"
echo "----${line}_____" >>/tmp/ldd-apps

[ "$VAR" ] &&  echo "$VAR" >>/tmp/ldd-apps
done < /tmp/files

rm /tmp/files
"$ED" /tmp/ldd-apps
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0528s ][ Queries: 13 (0.0075s) ][ GZIP on ]