Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I have:

[usern@hostn yum.repos.d]$ cat google-chrome.repo 

...how can I ensure that there will not be incidents like (just theory): a firefox package comes out in the google chrome repo, and because (just theory again) it has a newer version then the one that's in the original repos it gets installed when updating? How could I ensure that that from the google-chrome-repos I only get the google-chrome package?

share|improve this question
up vote 4 down vote accepted

In the repo file, add a line that says:


This will only allow updates and installs of packages named google-chrome* from that repo, all other packages will be ignored. You can list multiple packages if you separate them by a space.

In a more general sense, there's no good way of handling the problem of repos having conflicting RPMs. You have to choose good repos where you trust the maintainer (I always recommend EPEL). There's a few plugins out there which might help you such as yum-priorities and yum-protectbase but I've always used the incpludepkgs method. It's a little more work but I can sleep better at night knowing some RPM from some repo won't blow away some other RPM from a different repo when I don't want it too.

share|improve this answer

Install the package and turn off the repo [enabled=0]. When you are ready to update:

yum update

Then after all others have updated, turn on the repo [enabled=1].

yum update chrome             

NOTE: just the package you want to use that repo.

Then turn off the repo again, [enabled=0].

Sounds like a pain but a simple script can do it easily. This is the best way when using an untrusted repo.

If there is an unresolvable conflict. That's what this is for:

LD_LIBRARY_PATH=/home/user/mylibs/:$LD_LIBRARY_PATH conflicted_program
share|improve this answer

Your Answer


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.