PMo6022 Posted October 11, 2004 Report Share Posted October 11, 2004 Is there any quick method to find packages I installed as dependencies that are no longer needed? For instance, if I install a program and it has 3 dependencies, and then I uninstall the program, the dependencies are left behind. I know you can do: $ rpm --query --requires <package_name> to list all dependencies, and then try to remove any that seem unneeded, since RPM won't let you remove a package that another package requires, but that is cumbersome. What I am looking for is a quick way to scan all installed packages and remove unneeded ones. Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted October 12, 2004 Report Share Posted October 12, 2004 There's a tool called "urpmi_find_leaves" or something like that. It will find RPM packages that are not needed by any other RPM package. Then rpm -e those you don't need. Start again until there's nothing left to uninstall. Yves. Quote Link to comment Share on other sites More sharing options...
spinynorman Posted October 12, 2004 Report Share Posted October 12, 2004 There's a tool called "urpmi_find_leaves" or something like that. It will find RPM packages that are not needed by any other RPM package. urpmi_rpm-find-leaves :) Quote Link to comment Share on other sites More sharing options...
PMo6022 Posted October 12, 2004 Author Report Share Posted October 12, 2004 Thanks guys! That is exactly what I'm looking for. I'm at work now, but I'll try it out this evening after I get home. Quote Link to comment Share on other sites More sharing options...
fred_the_fish Posted October 12, 2004 Report Share Posted October 12, 2004 Then rpm -e those you don't need. Start again until there's nothing left to uninstall. <{POST_SNAPBACK}> Bang goes the system :D Quote Link to comment Share on other sites More sharing options...
adamw Posted October 12, 2004 Report Share Posted October 12, 2004 yep - it's a good idea to exercise caution when doing this. remember these tools can only understand the rpm database, so if you installed something because you needed it for something you installed *not as an rpm* - say something you built from source or installed from a non-rpm installer - then remember not to uninstall it just because no rpm package requires it :) Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted October 13, 2004 Report Share Posted October 13, 2004 Right. I should have told that, all the more because I *do* take care of such dependencies myself, because I do a lot of compiling. Yves. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.