At Wed, 24 Jun 2009 16:42:10 +0100 CentOS mailing list centos@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@centos.org http://lists.centos.org/mailman/listinfo/centos