[CentOS] how to yum install after deleting some files?

Wed Jun 24 16:34:05 UTC 2009
Robert Heller <heller at deepsoft.com>

At Wed, 24 Jun 2009 16:42:10 +0100 CentOS mailing list <centos at centos.org> wrote:

> 
> On 06/24/2009 04:36 PM, MontyRee wrote:
> > I have deleted some files for mistake.
> > So I would like to re-install those files using yum install.
> 
> yum reinstall <pkgname>
> 
> that should work on CentOS-5, if you are using CentOS-3 or 4 then no
> there is no way to do this. You would need to use rpm to delete the
> package first then yum to install it

rpm -hiv --force brokenpackage.rpm

replace 'brokenpackage.rpm' with the package RPM whose files you
deleted by mistake.

> 
> - KB
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 
>                                                                                         

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
heller at deepsoft.com       -- http://www.deepsoft.com/ModelRailroadSystem/