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.

link|improve this question

45% accept rate
feedback

2 Answers

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
link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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