How to remove packages that are no longer needed on CentOS 5?

8,237

Solution 1

package-cleanup in yum-utils will give you a list of packages that are not longer used. It cannot automatically remove them though it would be simple to use the output in a script that did this.

You could also look into a yum plugin called remove-with-leaves. I have never used it so I'm not sure of its compatibility with the version of yum in CentOS 5. Also, people seem to have a lot of problems given the results of a quick google search.

Solution 2

Check out "package-cleanup" in yum-utils (yum install yum-utils).

Share:
8,237

Related videos on Youtube

lexsys
Author by

lexsys

in love with mountains

Updated on September 17, 2022

Comments

  • lexsys
    lexsys over 1 year

    While installing package I get some additional packages on dependency. But when I remove installed package with yum, the dependency packages are not removed, though I don't need them anymore.

    How can I remove them automatically?