Originally posted by masster
2. I started with cpp-3.3.3-1.i386.rpm (obviously, doh, I knew that). Result:
error: Failed dependencies:
cpp = 3.2.2-5 is needed by (installed) gcc-3.2.2-5
But cpp 3.2.2.5 IS ALREADY INSTALLED, because when I try to re-install cpp-3.2.2-5.i386.rpm (the SAME one I used to upgrade some 3 months ago) I get:
package cpp-3.2.2-5 is already installed
So how about that??? Installed? Not installed? What is this? Twilight zone? Or a Laurel&Hardy movie?
Sorry, masster, please calm down read my posts twice, if needed, and more carefully.
Again: This error message means that cpp-3.2.2-5 is needed by the already installed gcc-3.2.2-5. It is not needed by the to-be-installed gcc-3.3.3-1, but by the old one you already have. You cannot update cpp without updating gcc
at the same time (i.e., with the same command) because cpp and gcc must be exactly the same version.
So, please, do the following:
1. Create an empty directory somewhere on your harddisk. Let's say, /tmp/gcc_update:
mkdir -p /tmp/gcc_update
2. Change into that directory:
cd /tmp/gcc_update
3. Download the new cpp package into that directory.
4. Test installing all packages that are stored in this directory (cpp only, at the moment):
rpm -Uvh * --test
5. The error message will be the same as above. And know, after knowing what the error message means, you know that you must update gcc in the same command. Therefore:
6. Download the new gcc package into the same directory
7. Execute the same command as above, again (now it will cover cpp and gcc):
rpm -Uvh * --test
This time the error message will be different, and you are one step further. It will tell you that even more packages need to be updated at the same time.
8. Download the new versions of the packages it complains about in step 7. and then repeat step 7.
9. Repeat step 7. for all packages it complains about, until the command
rpm -Uvh * --test
does not return any error message.
10. If you're done resolving the dependencies and the command
rpm -Uvh * --test
does not return any error messages any more, you can perform the real installation:
rpm -Uvh *
OK?