Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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

 
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.