Server Fault is a question and answer site for system and network administrators. 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

How can I selectively install a package from the centosplus repository in CentOS 6.0? If I enable that repo and run a yum update, it would install other packages (newer kernels etc.) too. I just need one package from centosplus, but I'd like to get everything else from the base repository.

share|improve this question
up vote 2 down vote accepted

Use includepkgs= (I need only these packages) or exclude= (I don't want these packages) in centosplus repo file.

More info at

man 5 yum.conf
share|improve this answer

yum --enablerepo=centosplus install packagename should do this for you.

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.