Who can fix my python, yum, rpm setup...

nieuwhier

Verified User
Joined
Sep 8, 2005
Messages
280
Location
Netherlands
I have a server with centos 4.5.

installed trac, svn, python 2.5 and it all works fantastic.

But somewhere my yum broke down....

Who wants to fix this for me, I am sick of it now (many hours wich I don'thave).
Of course I want to to pay you if you succeed.

Please only respond if you have a track-record on this forum.
 
What error are you getting to know that it is not working right?

Try:

rpm -Uvh --force "http://mirrors.rit.edu/centos/4.6/os/i386/CentOS/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm" "http://mirrors.rit.edu/centos/4.6/os/i386/CentOS/RPMS/yum-metadata-parser-1.0-8.el4.centos.i386.rpm"
 
Last edited:
No module named yum.

I think the problem has to do with python. I need python 2.5 and that works but I still see python 2.3 on the system also.

Installing yum with an rpm does work but has no effect. Installing the most recent yum version has no effect... I tried a lot :-(
 
Try:

rpm -Uvh --force "http://mirrors.rit.edu/centos/4.6/os/i386/CentOS/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm" "http://mirrors.rit.edu/centos/4.6/os/i386/CentOS/RPMS/yum-metadata-parser-1.0-8.el4.centos.i386.rpm"

Thx! I did this and still get the error 'no module named yum'.
 
Thx! I did this and still get the error 'no module named yum'.

Yeah I guess I wasnt thinking :)

You will probably have to rebuild the rpm via src.rpm file.

See if you have the program rpmbuild already on the system.

If not you can install it via:

rpm -Uvh "http://mirrors.kernel.org/centos/4.6/os/i386/CentOS/RPMS/rpm-devel-4.3.3-23_nonptl.i386.rpm"

You can get the rest of the dependencies here:

http://mirrors.kernel.org/centos/4.6/os/i386/CentOS/RPMS/

Once you get rpmbuild on the system you can then build the source rpm.

Find out which version of yum you have on your system by typing:

yum --version

Then you can go to:

http://linux.duke.edu/projects/yum/download.ptml

And find the file you need. Download the .src.rpm to your server.

Example:

cd /root
wget "http://linux.duke.edu/projects/yum/download/3.0/yum-3.0.6-1.src.rpm"
rpmbuild --rebuild yum-3.0.6-1.src.rpm

Once it was done building you would do:

rpm -Uvh --force /usr/src/redhat/RPMS/noarch/yum*rpm


Another thing I read online was to do the following:

type:

python

once the command prompt is open

type:

import yum

If you get any errors from that then you can begin to figure out what they are to maybe fix it.

But most sites say that if you install yum via src.rpm it will fix it.
 
Thx chatwizrd. I copied your message to try this on another server with kind-of the same problem.

For now I am all set, problem is solved !!
 
Back
Top