Discussion:
Can one force yum to install something that's already installed?
Chris G
2008-03-05 09:35:18 UTC
Permalink
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 Green
Rahul Sundaram
2008-03-05 09:51:09 UTC
Permalink
Post by Chris G
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
Bruno Wolff III
2008-03-05 18:42:37 UTC
Permalink
On Wed, Mar 05, 2008 at 15:21:09 +0530,
Post by Rahul Sundaram
Post by Chris G
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.
Bruno Wolff III
2008-03-05 18:42:37 UTC
Permalink
On Wed, Mar 05, 2008 at 15:21:09 +0530,
Post by Rahul Sundaram
Post by Chris G
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.
Gilboa Davara
2008-03-05 10:17:16 UTC
Permalink
Post by Chris G
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
Mikkel L. Ellertson
2008-03-05 15:07:07 UTC
Permalink
Post by Chris G
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
--
Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20080305/82183e0c/attachment.bin
Chris G
2008-03-05 09:35:18 UTC
Permalink
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 Green
Rahul Sundaram
2008-03-05 09:51:09 UTC
Permalink
Post by Chris G
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
Gilboa Davara
2008-03-05 10:17:16 UTC
Permalink
Post by Chris G
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
Mikkel L. Ellertson
2008-03-05 15:07:07 UTC
Permalink
Post by Chris G
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
--
Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20080305/82183e0c/attachment-0001.bin
Loading...