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. 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? Thanks for your help, Fabian
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
In a previous message, Fabian wrote:
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?
If you're using SuSE 8.1, use YaST to uninstall - it does dependency checking. That's how I now always remove RPMs. It's a bit annoying to use GnoRPM to install and YaST to uninstall but until YaST will use local files to install, that's what I have to do! John -- John Pettigrew Headstrong Games john@headstrong-games.co.uk Fun : Strategy : Price http://www.headstrong-games.co.uk/ Board games that won't break the bank Valley of the Kings: ransack an ancient Egyptian tomb but beware of mummies!
If you're using SuSE 8.1, use YaST to uninstall - it does dependency checking. That's how I now always remove RPMs. It's a bit annoying to use GnoRPM to install and YaST to uninstall but until YaST will use local files to install, that's what I have to do!
I'm using SuSE 8.1. But YaST does not uninstall packages that are not needed anymore. It just checks the dependencies I'm looking for a way to find RPMs that are not needed by any other RPM. Shouldn't the RPM database be able to perform this? Fabian
In a previous message, Fabian Dost wrote:
If you're using SuSE 8.1, use YaST to uninstall - it does dependency checking.
I'm using SuSE 8.1. But YaST does not uninstall packages that are not needed anymore. It just checks the dependencies
YaST does seem to check dependencies when uninstalling. Try uninstalling perl, for exampl - you'll get loads of warnings about stuff that depends on it, with the option of uninstalling them, too. However, beware that, even if you say "cancel", it will leave the original package marked for deletion! John -- John Pettigrew Headstrong Games john@headstrong-games.co.uk Fun : Strategy : Price http://www.headstrong-games.co.uk/ Board games that won't break the bank Valley of the Kings: ransack an ancient Egyptian tomb but beware of mummies!
On Mon, 2003-02-17 at 02:31, John Pettigrew wrote:
It's a bit annoying to use GnoRPM to install and YaST to uninstall but until YaST will use local files to install, that's what I have to do!
I came across a way to install local files via YaST2 very easily. If you downloaded package x.rpm open up konqueror file browser and click on x.rpm. It gives you a button up top to "install with yast". Since I don't use konqueror all that much since it always crashes, I just came across this option recently, and have only installed one program with it, since. However, it does launch the YaST installation, and "appears" to check for dependencies that are on the installation CD's. If you do it this way, you can uninstall via YaST like any other program. I haven't played with it much, so, like I said, I'm not 100% on the dependency thing, but someone else who uses it might know more, or you could play with it some. -Jeric -- JericAtSbcglobalDotNetwork 9:12am up 15:10, 6 users, load average: 0.19, 0.12, 0.04 "The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated..." -U.S. Constitution, Amendment IV, 1791 (Say "NO" to TIA!)
In a previous message, Jeric wrote:
I came across a way to install local files via YaST2 very easily. If you downloaded package x.rpm open up konqueror file browser and click on x.rpm. It gives you a button up top to "install with yast".
That could be useful. Does anyone know how this could be added to e.g. Nautilus (I don't like Konqueror, nor do I use KDE)? Presumably, a bash script of some sort? John -- John Pettigrew Headstrong Games john@headstrong-games.co.uk Fun : Strategy : Price http://www.headstrong-games.co.uk/ Board games that won't break the bank Fields of Valour: 2 Norse clans battle on one of 3 different boards
participants (5)
-
Fabian
-
Fabian Dost
-
Jeric
-
John Pettigrew
-
Jon Clausen