-   Linux - Newbie (
-   -   linux Command needed (

cherupop 07-05-2005 10:00 AM

linux Command needed
Hi guys

I know there is a command that exist in linux that allows you to see what are the libraries, drivers etc... that are needed for a specific program

I don't know if I'm being clear but is something like

# "command needed" realplayer

and then I get all the software that this application use when it's run.

Cherupop :idea:

jtshaw 07-05-2005 10:21 AM

ldd will show you what libraries a program is linked against...

Example output:

j_shaw@jshaw ~ $ ldd /usr/bin/vim =>  (0xffffe000) => /lib/ (0xb7f01000) => /lib/ (0xb7efb000) => /usr/lib/ (0xb7de5000) => /lib/ (0xb7de1000) => /lib/ (0xb7caa000) => /lib/ (0xb7c97000) => /lib/ (0xb7c70000) => /lib/ (0xb7c6c000) => /lib/ (0xb7c54000) => /lib/ (0xb7c26000)
        /lib/ (0xb7f57000)

If a library isn't found it will show that as well:

j_shaw@jshaw ~ # ldd /usr/bin/vim =>  (0xffffe000) => /lib/ (0xb7ef5000) => not found => /usr/lib/ (0xb7ddf000) => /lib/ (0xb7ddb000) => /lib/ (0xb7ca4000) => /lib/ (0xb7c91000) => /lib/ (0xb7c6a000) => /lib/ (0xb7c66000) => /lib/ (0xb7c4e000) => /lib/ (0xb7c20000)
        /lib/ (0xb7f4b000)

cherupop 07-05-2005 10:26 AM

command needed
yeah that was the one that I was looking for.
Thanks a lot

cherupop 07-05-2005 11:21 PM

So now I have one more question

What if I wanna know if I have installed one of the librarys needed for a program before I installed
Lets say that the program needs , is there a command that tells me if I have that isntalled already or not so I can get it before

thanks again


Ynot Irucrem 07-05-2005 11:33 PM

you could just do the following as root:


All times are GMT -5. The time now is 05:30 AM.