|
I can give you some help with this, but if you don't already know how to add and remove packages without Yum, then I strongly recommend having and experienced systems administrator help with this. Removing and reinstalling Yum will, at least temporarily, break things. Everything *should* work fine after the reinstall, but it is possible that something else will break along the way. If you are not comfortable adding and removing packages, or do not have a lot of experience with Linux, I suggest that you get one of your local systems administrators to assist you before continuing with these instructions. If you do this wrong, you could potentially make your system inoperable.
Before you begin, you need to read and understand the RPM man page. RPM is the tool to use to manually add and remove packages.
First, we can try to manually update the yum packages and see if that solves the problem. Make sure you have downloaded the latest copies of the 4 files that I mentioned in my previous post, yum, yum-fastestmirror, yum-metadata-parser, and yum-updatesd. Once you have the latest files, run the following command as root:
# rpm -Uvh yum yum-fastestmirror yum-metadata-parser yum-updatesd
The command may generate errors, if it does, do your best to resolve them by downloading more up to date versions of the dependent packages, and adding them to the install command above. Once the command is run successfully, you should be able to use Yum. If you are still seeing the same error, then you will need to remove the existing Yum packages and reinstall them. Again, this should only be done as a last resort, with an experienced Linux systems administrator nearby and ready to help if things go badly. The following command will erase the Yum packages and alert you to any dependencies that will prevent the removal. During the test phase, DO NOT run this command as root, use a regular user account.
$ rpm -ev yum yum-fastestmirror yum-metadata-parser yum-updatesd
At this point there should be a list of dependencies that will be broken by making this change. You will need to download RPMs for each of the listed dependencies and add them to the rpm -ev command. Once it has stopped listing dependencies, su to Root, and run the completed command. Once it finishes running, you will need to run the following command to reinstall all of the packages that you removed. Make sure to add the dependencies to the end of the command.
# rpm -ivh yum yum-fastestmirror yum-metadata-parser yum-updatesd
Once everything is reinstalled, Yum should function normally.
|