从centosplus中有select地安装软件包

我如何有select地从centosplus资源库中安装CentOS 6.0的软件包? 如果我启用该回购和运行yum update ,它会安装其他软件包(较新的内核等)。 我只需要一个来自centosplus包,但是我想从基础库中获取所有其他的东西。

在centosplus回购文件中使用includepkgs=我只需要这些包 )或exclude=我不想要这些包 )。

更多信息在

 man 5 yum.conf 

yum --enablerepo=centosplus install packagename应该为你做这个。