RedHat: Easiest way to upgrade from Python 2.3 to 2.4

G

gmax2006

Hi,

My RedHat Linux installation already has Python 2.3 on it.
What is the easiest way to upgrade it to 2.4?

I use ActiveState python in Windows. Is it the best distribution for
Linux as well?

Thank you,
Max
 
F

Fredrik Lundh

gmax2006 said:
My RedHat Linux installation already has Python 2.3 on it.
What is the easiest way to upgrade it to 2.4?

grab the source tarball from python.org, built it according to
instructions (./configure; make), and install using:

# make altinstall

DO NOT do a full install; you'll most likely break RedHat stuff if you
do that.

to access the resulting binary, use "python2.4" instead of "python".

</F>
 
G

gmax2006

Fredrik said:
DO NOT do a full install; you'll most likely break RedHat stuff if you
do that.

I was expecting an rpm to do the update. This is a sensitive production
box. I think I should just continue with Python 2.3.

Regards,
 
S

Stefan Behnel

gmax2006 said:
My RedHat Linux installation already has Python 2.3 on it.
What is the easiest way to upgrade it to 2.4?

The source tar-ball contains an file Misc/RPM/python-XXX.spec that you can use
to build an RPM ("rpmbuild -bs" or "rpm -bs"). The resulting package will
normally be called "python2.4", so if your current installation uses plain
"python" (rpm -q python), you can install it without any problems with
backwards compatibility.

Stefan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top