Re: repairing an installed RPM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux