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.

If I have:

[usern@hostn yum.repos.d]$ cat google-chrome.repo 
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/i386
enabled=1
gpgcheck=1

...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

1 Answer 1

up vote 2 down vote accepted

In the repo file, add a line that says:

includepkgs=google-chrome*

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

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.