LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Help - Upgrade Python2.5 in CentOS5.2 (https://www.linuxquestions.org/questions/red-hat-31/help-upgrade-python2-5-in-centos5-2-a-698555/)

ke1vintan 01-20-2009 04:06 AM

Help - Upgrade Python2.5 in CentOS5.2
 
anyone have idea how to upgrade to python2.5??? many thanks!

Regards,
Kel

TB0ne 01-21-2009 01:00 PM

Quote:

Originally Posted by ke1vintan (Post 3414800)
anyone have idea how to upgrade to python2.5??? many thanks!

Regards,
Kel

Try typing in "yum upgrade python"....

reddazz 01-21-2009 01:28 PM

You should be careful with regards to "upgrading" python. If you install a new version of python in the same place where your distro installs its version of python you can end up with a broken system. You could compile your own version to a directory like /usr/local/python25.

ke1vintan 01-21-2009 07:59 PM

Quote:

Originally Posted by reddazz (Post 3416447)
You should be careful with regards to "upgrading" python. If you install a new version of python in the same place where your distro installs its version of python you can end up with a broken system. You could compile your own version to a directory like /usr/local/python25.

Hi, i am still quite fresh in the linux, mind to show me the step if i manually download the python2.5.tar.gz file? as when i do the yum update, it only show me python2.4 is the latest update, but i need python2.5, thanks!

Regards,
Kelvin

reddazz 01-27-2009 10:03 AM

Distributions tend to stick with the same version of python even if a new version has been released, thats why yum keeps showing the old version. This is for stability reasons and so that distro maintainers don't have to port their tools to a new python release. If you need a new version of python, compile from source and make sure you install in a different path to that of your distributions version of python.

If you downloaded the tar.gz file, you need to do something like
Code:

tar zxvf python2.5.tar.gz
cd python2.5
./configure --prefix=/usr/local/python25
make
su
make install

Read the documentation on the python site or in the directory extracted from the tar.gz file for more specific installation details.


All times are GMT -5. The time now is 05:27 AM.