I
I
ixSci2011-03-16 15:21:24
linux
ixSci, 2011-03-16 15:21:24

Determine binary dependencies from packages in Linux (Ubuntu)?

Good day!
Is there a way to determine which packages and which versions will be needed when deploying an application?
I can get a list of all so with ldd , but it doesn't say what packages those libraries are in.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
z0rc, 2011-03-16
@ixSci

Do you have some kind of binary, not a normal package that you are going to "deploy"? There are dependencies on version levels only at the level of working with packages; when working with binaries, you can focus only on the ABI version. It is better to contact the person who compiled the binary to clarify which versions of the libraries it was linking against.

S
shurshur, 2011-03-16
@shurshur

dpkg -S /usr/lib/libnuzhnayaliba.so will show which package it is in. It can be used.
However, I would make a package, if the build system is written correctly in debian/rules, there will definitely be a dh_shlibdeps command (I can be wrong with the exact name), which will include the necessary dependencies. Installing the package in this case may look like this: At the first program, it will swear - this is normal. The second one will fix the dependencies and postinstall the first one.
dpkg -i proga_1.0_i386.deb
apt-get install -f

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question