repairing an installed RPM

James Wilkinson fedora at westexe.demon.co.uk
Wed Jan 11 20:59:43 UTC 2006


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?

rpm -F --oldpackage foo.rpm

Hope this helps,

James.
-- 
E-mail address: james | Practically any car advert, for example, shows you
@westexe.demon.co.uk  | that if you buy this car you will get so lost that you
                      | end up parked (well, no. The word here is "stuck") on
                      | a mountain in Monument Valley.  -- Telsa Gwynne




More information about the fedora-list mailing list