Mail List wrote:
On Sunday 17 June 2007 09:57:48 am Aaron Konstam wrote:
> On Sat, 2007-06-16 at 23:22 +0100, Steve Searle wrote:
>> Around 11:11pm on Saturday, June 16, 2007 (UK time), Timothy Murphy
scrawled:
>>> Why does "yum remove foo" try to remove every package
>>> using anything required by foo?
>>> Surely the rational strategy would be to leave anything
I am not sure what yum does or doesn't do, but it seems to me what
it should do to remove foo is remove any thing foo needs which is
NOT needed by anything else. It should also remove anything which
needs foo. Not sure what else you could do really.
You can use the package-cleanup tool to list packages that nothing
depends on. This command will print a list of such packages:
$ package-cleanup --leaves
You could feed that to yum to remove those packages:
$ yum remove $(package-cleanup --leaves)
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL:
www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damn you vile woman, you've impeded my work since the day I escaped
your vile womb!
-- Stewie Griffin