Fedora Package Cleanup

I like to play with apps, so I install a lot, and see what they do, when I’ve finished with them, I’ll yum remove them, but if any apps have installed anything else as a requirement, it’ll leave it behind and not remove it. Now I like a clean and tidy machine so I was wondering what options I had. There are quite a few, for example, this will show you what packages are installed, but not required by anything else, so in theory could be removed.

package-cleanup --leaves

If you add the -all to the end, I think this’ll remove them, but don’t quote me on that. However there is an easier options which has been available in yum since Fedora 18.

 yum autoremove

or if you wanted to just remove one package, you can do it like this

yum autoremove package

yes it’s that simple.

Dirty Packages Be Gone!


2 thoughts on “Fedora Package Cleanup

  1. By the way, DNF improves the situation. When you run “dnf remove
    somepackage”, it will automatically uninstall the orphaned dependencies.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s