On Mon, Feb 17, 2003 at 12:57:38AM +0100, Fabian wrote:
Hi! It's easy to install a program with rpm: Let's say, I want to install program "a". Program "a" needs program "b" and this needs program "c". Rpm takes care of the dependencies and installs "b" and "c" automatically.
really?
But if program "a" is deinstalled, program "b" and "c" remain in the system although they are now useless. How can I find these not needed programs and deinstall them?
Assuming you still have a.rpm around, have a look at the output of rpm -qp --requires /path/to/a.rpm The list might be longish, and there's probably going to be a fair amount of things you should leave alone, but you can then check each item with rpm -q --whatprovides libfoo man rpm is your friend :) There's probably some way to (more or less) automate this process, but someone else will have to tell you. HTH Jon Clausen