Description of problem: yum is missing a 'reinstall' option. Version-Release number of selected component (if applicable): IMHO all releases don't have this option. How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: It would be good to have a reinstall option, e.g. in case a file or a directory from a known package is damaged. Simple 'yum reinstall package-name' would restore the missing file. Right now this is quite difficult to do. An obvious remove-install solution does not work if package provides a feature used by others. Additional info:
I agree with Filip's request. Sometimes you just mess things up and the best and simple way to get around is to remove the package and o install it again. Unfortunately sometimes this solution reveals itself to be more of a problem than the original one with yum removing half of your software because of dependencies.
actually, there's a --repackage option with rpm. you can set a flag in yum.conf so when you remove a package, the old package will be placed in /var/spool. however, i believe you use rpm and a specified time to restore the old package. what would be nice is if there was a yum switch/option(s) that you can use to roll back individual packages by name from a source directory without having to use rpm and a date range. this may already be possible from just using rpm and up2date but having it centralized and efficient in yum would be nice.
wow. this is 7 months old. never mind. i'll just write a script.
okay I just checked this code into yum upstream yum reinstall pkg should do the right thing (within reason) I'd highly recommend being as specific as possible with the pkg specification so you don't end up adding too much.