Repairing can be a very tricky thing to do. You will first need to pull down the rpms for yum and install them manually, assuming rpm will still work. From there look through your yum log and figure out what all packages to reinstall. It could be very labor intensive, and most likely not worth doing. However, with that disclaimer, this might help you get started. The dependency list for yum consists of:
You may need to get the additional packages for those to install, but as I said, this was a starting point. Once you have yum working you need to build out the list of packages that were removed. Since all yum operations are logged, this should actually be fairly easy. By going through /var/log/yum.log looking for the string "Erased:" you can determine what was uninstalled. Try running this command to make things easier:
You really have two options at this point:
Repairing can be a very tricky thing to do. You will first need to pull down the rpms for yum and install them manually, assuming rpm will still work. From there look through your yum log and figure out what all packages to reinstall. It could be very labor intensive, and most likely not worth doing. However, with that disclaimer, this might help you get started. The dependency list for yum consists of:
You may need to get the additional packages for those to install, but as I said, this was a starting point. Once you have yum working you need to build out the list of packages that were removed. Since all yum operations are logged, this should actually be fairly easy. By going through
/var/log/yum.log
looking for the string "Erased:" you can determine what was uninstalled. Try running this command to make things easier:Now that you have your package list, you can start building out your re-install list by doing something like:
Although, in the end, a fresh install may be the easiest way to go, particularly if you're in a rush.
Restore from backups.