repairing an installed RPM

Paul Howarth paul at city-fan.org
Tue Jan 10 08:37:10 UTC 2006


On Tue, 2006-01-10 at 00:42 +0000, Dave Mitchell wrote:
> If I have an installed RPM, and one or more of its installed files have
> been deleted or corrupted, what's the best way to repair it?
> 
> The only way I've found is
> 
>     rpm -e --nodeps foo.rpm
>     rpm -i foo.rpm
> 
> which seems a bit clunky. Is there any way that only updates the damaged
> files?

Not really, but a cleaner method of reinstalling (i.e. without removing
the existing one using the dreaded --nodeps option first) is:

$ rpm -U --replacefiles --replacepkgs foo.rpm

Paul.




More information about the fedora-list mailing list