Question on yum remove
Todd Zullinger
tmz at pobox.com
Sun Jun 17 17:56:07 UTC 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070617/7537dc23/attachment-0001.sig>
More information about the fedora-list
mailing list