I did: yum groupinstall 'Development Tools' Now I want to remove it: yum groupremove 'Development Tools'

But it marks for deletion many other packages that require binutils.

How to keep binutils?

My native distro is Arch. There how yum removes packages by default is called cascade.

I could use rpm command directly, but the problem becomes opposite: it won't remove any package, if just one fails deps check:

# 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

For groupremove it would be: yum --setopt=groupremove_leaf_only=1 groupremove 'Development Tools'

There's also a patch adding a similar remove_leaf_only option, that modifies remove, but yum in RHEL 6.5 does not yet support it.

  • 1
    You can use --setopt to pass random config. options on the command line. – James Antill Nov 17 '14 at 21:30

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.