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.


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

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

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.