1

I'm trying to install some dependencies for thrift using yum. I've found, for example boost via yum search boost which gives me (after a load of fails as the PC not on the web, but has a local repository somewhere...on the network...I think):

boost.x86_64 : The free peer-reviewed portable C++ source libraries

But when I go to try yum localinstall boost* I get nothing 'file does not end with RPM, skipping', likewise find boost* gives nothing.

Should my yum command work, and this is a sign that it's not on the network? Or is it on there and I'm not using the right command to find the path to the rpm for it? Bottom line: How can I use yum to install a local file I found using search?

Edit:

I should mention, running yum install boost* fails as I cannot get on the web. This still leaves me wondering: The yum search result is not local (as per Ignacio's comment), and it's not installed (whereis and which are drawing up blanks, as is locate) nor can I even reach a repo. So what is yum search finding, and how do I install it?

12
  • What is the output of locate boost.x86_64?
    – terdon
    Sep 24, 2012 at 10:43
  • @terdon locate: cannot stat () '/var/lib/mlocate/mlocate.db': No such file or directory Sep 24, 2012 at 11:09
  • Run updatedb as root first, and then then the locate command. locate will search for file names containing a pattern. It should at least be able to find your local rpm.
    – terdon
    Sep 24, 2012 at 11:13
  • @terdon updated and it finds nothing. How do I know the search result is local? Sep 24, 2012 at 12:53
  • I assumed it was local because you used localinstall and were referring to a local package.
    – terdon
    Sep 24, 2012 at 13:10

1 Answer 1

2

localinstall is intended to install packages you have on your local filesystem. If yum finds it in a repository then you should use install instead.

EDIT:

The reason yum install boost* fails is because you have files that match that pattern, and your shell is globbing it. Escape the wildcard.

yum install 'boost*'
6
  • Two things, does the out put form the search call imply it's not local (i.e. in a repo) and two, if it is in a repo, why doesn't just using install work? Sep 24, 2012 at 12:24
  • yum only looks at packages either in a repo or already installed. And nowhere do you say that install doesn't work. Sep 24, 2012 at 12:26
  • Sorry, I should have mentioned that to start. Sep 24, 2012 at 12:54
  • +1 as I foudn this useful. Also I've updated the question. Is it clearer now? Sep 24, 2012 at 13:38
  • Escaping the wildcard doesn't work either; it tries the all the mirrors, they all fail, it tries to download form base, that all fails (why does it get this far?) Then tells me all the files in boost didn't install. Sep 24, 2012 at 14:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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