yum groupremove 'Development Tools': 保留其他包所需的包

yum groupremove 'Development Tools': 保留其他包所需的包

我做了:yum groupinstall 'Development Tools' 现在我想删除它:yum groupremove 'Development Tools'

但它标记了删除许多其他需要binutils.

如何保持binutils

我的本地发行版是Arch. yum 默认删除软件包的方式称为cascade

我可以rpm直接使用命令,但问题相反:如果只有一个包未能通过 deps 检查,它不会删除任何包:

# rpm -e apr binutils
error: Failed dependencies:
        binutils is needed by (installed) crash-5.0.0-23.el6.x86_64
        binutils is needed by (installed) module-init-tools-3.9-17.el6.x86_64
        binutils is needed by (installed) oprofile-0.9.6-7.el6.x86_64
        /usr/bin/ar is needed by (installed) redhat-lsb-4.0-2.1.el6.x86_64
        /usr/bin/strip is needed by (installed) redhat-lsb-4.0-2.1.el6.x86_64

答案1

对于 groupremove 它将是:yum --setopt=groupremove_leaf_only=1 groupremove 'Development Tools'

还有一个补丁添加了类似的remove_leaf_only选项,可以修改remove,但 yumRHEL6.5 中尚不支持它。

相关内容