What is that command to list dependencies?
I haven't used it in a while, so I've forgotten it, and it's really frustrating me. I know there's a command in Slackware (or maybe it's more general than Slackware, I can't recall) which lists a package's dependencies and indicates which of those are installed.
I've been searching through these forums, docs.slackware.com, & the rest of the web. I'm sure the answer's out there somewhere, but I must be using the wrong search terms. |
Welcome back to Slackware. There are no package dependencies in Slackware, so there can be no command to list them. :-)
|
hmmmm...
I must be using the wrong terms. As I think about it more, I'm thinking that maybe it's not specific to Slackware, and maybe it takes only an installed program name as input as lists the libraries it links to? Does that sound more reasonable? I think this might be what it does. |
Perhaps you are thinking about /usr/bin/ldd?
|
ah ha! The command I was searching for is ldd !
Thanks Woodsman. :) On a not-entirely unrelated note, the default Slackware install on linode is terrible in terms of the installed libraries & packages... |
if you are looking for info about binary dependencies, try this
https://bitbucket.org/a4z/sbbdep/wiki/Home |
a4z, that looks interesting. I wish the examples page was working though. ;)
edit: I now see that there are examples on the main page. This is really cool. Thanks for making it. |
hm, have to check what's the problem with the example page is.
the page exists, and it worked, now it stopped working, so possible a bitbucket issue thank's for the hint, will see what I can do |
seems to be a bitbucket issue, bug is already reported
https://bitbucket.org/site/master/is...i-page-getting |
bitbucket fixed the issue so the expample page is back
https://bitbucket.org/a4z/sbbdep/wiki/examples |
From ldd man page:
Quote:
|
Quote:
|
Quote:
Quote:
|
readelf is basically what sbbdep does. it uses elfio to explore the binaries
since it caches information it reports the packages and possible alternatives, or reports something as missing if not available and it tells what programs do need a library/package it has also a ldd option to use the ldd lookup, and some other stuff so in some sense it is like a swiss army knive that brings together some functionality |
The objdump command shown does the same as the readelf command shown. Either of them are much safer than using ldd because using ldd actually executes(tries anyway) the command in order to track what it gets linked to. If the binary in question is malicious then simply having a look with ldd lets it do its thing, whereas reading the ELF header using objdump or readelf makes no attempt to execute the thing.
This is not perfect, but makes a nice replacement to using ldd: Code:
#!/bin/bash |
All times are GMT -5. The time now is 09:38 AM. |