Is there any way to force yum to re-install a package that has got corrupted (well, *may* have got corrupted)?
Obviously I could do:-
yum remove <package> yum install <package>
but it seems like there ought to be an easier way to do it.
Chris G wrote:
Is there any way to force yum to re-install a package that has got corrupted (well, *may* have got corrupted)?
Obviously I could do:-
yum remove <package> yum install <package>
but it seems like there ought to be an easier way to do it.
yum 3.2-11 (in Rawhide) has a reinstall option but the latest yum in Fedora 8 doesn't. You could file a RFE and request an update if it is not already done.
Rahul
On Wed, 2008-03-05 at 09:35 +0000, Chris G wrote:
Is there any way to force yum to re-install a package that has got corrupted (well, *may* have got corrupted)?
Obviously I could do:-
yum remove <package> yum install <package>
but it seems like there ought to be an easier way to do it.
In F8 you'll have to manually download the offending package and reinstall it by hand. (rpm -Uvh --force rpm_package.rpm)
- Gilboa
Chris G wrote:
Is there any way to force yum to re-install a package that has got corrupted (well, *may* have got corrupted)?
Others have covered how to replace the package, but if you want to check the package to see if it is corrupted, you can run:
rpm -V <package>
or
rpm -Vv <package>
The first version will return without printing anything is everything verifies. The second version will show each file being checked, and will print .'s for things that check correctly.
Mikkel
On Wed, Mar 05, 2008 at 15:21:09 +0530, Rahul Sundaram sundaram@fedoraproject.org wrote:
Chris G wrote:
Is there any way to force yum to re-install a package that has got corrupted (well, *may* have got corrupted)?
Obviously I could do:-
yum remove <package> yum install <package>
but it seems like there ought to be an easier way to do it.
yum 3.2-11 (in Rawhide) has a reinstall option but the latest yum in Fedora 8 doesn't. You could file a RFE and request an update if it is not already done.
In the short term you can use the --force option on rpm to do this.