Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I sometimes install software which isn't present in the repositories, and then I run into the problem of not satisfied dependencies. The error usually tells me which library or command is missing. Then I run a yum search. If there is a package name coinciding with the library/command name needed, it is easy.

The problem comes when I can't find anything in yum. I start searching around on the Web, and often I find links to the library. But I don't know whether to trust these sites, where to copy the library if I download it, what it is supposed to do at all, and so on. Often it is supposed to be for another distribution, or another Fedora version, and then I don't know whether they will work with mine. I suspect that these libraries are probably present in some package already in the repository, and I would much rather have them from there than from random Googled sites.

How can I find out which package a library belongs to, if I have its name? For example, now I need the library libpng12.so.0, how do I get it? And if it is not a library, but a command, how do I find the package which provides it?

share|improve this question

3 Answers 3

up vote 4 down vote accepted

Since libraries are "autoprovided" by rpmbuild:

yum whatprovides libpng12.so.0

If that results in nothing then no package in Fedora provides it and you'll need to talk to whoever built the software.

share|improve this answer

From all my searching with fedora... sometimes I find them here (see link below). For example, libpng15, which contains libpng15.so.15

http://archive.fedoraproject.org/pub/fedora/linux/releases/20/Everything/i386/os/Packages/l/

Then you download and rpm -i

share|improve this answer
1  
Any package found in http://archive.fedoraproject.org would be able to be installed via yum (so long as it's available for your version of Fedora), so there's no need to search the site and download it manually. –  drs Jun 9 at 20:50

If you want to satisfy the dependencies then you can search the application that you want in the synaptic manager and then check it and install it. Or if you like to save your performance and do it on command-line then use :

sudo yum "package1" "dependency1" "dependency2" ...

Replace the text in quotes with the package name or the dependency.

share|improve this answer
    
The software I am installing is not in the repositories at all, so the repository doesn't know which dependencies it needs. –  rumtscho Jun 15 '12 at 16:59
    
@Ignacio Vazquez-Abrams : fedora has synaptic. You can install it by : "sudo yum synaptic" . without quotes. –  Pranit Bauva Jun 15 '12 at 17:08
    
@rumtscho : You can add a repository to your system so that it can obtain dependencies or packages from that link. –  Pranit Bauva Jun 15 '12 at 17:11
    
First, I don't want to add too many repositories beside the official ones. Second, I am not aware of any repositories containing the programms I am installing. Their authors offer them as binaries only. –  rumtscho Jun 15 '12 at 17:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.