LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-20-2009, 04:06 AM   #1
ke1vintan
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Rep: Reputation: 0
Help - Upgrade Python2.5 in CentOS5.2


anyone have idea how to upgrade to python2.5??? many thanks!

Regards,
Kel
 
Old 01-21-2009, 01:00 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,681

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by ke1vintan View Post
anyone have idea how to upgrade to python2.5??? many thanks!

Regards,
Kel
Try typing in "yum upgrade python"....
 
Old 01-21-2009, 01:28 PM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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.
 
Old 01-21-2009, 07:59 PM   #4
ke1vintan
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by reddazz View Post
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
 
Old 01-27-2009, 10:03 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
python2.6 HTTPSHandler() benchcomptons Programming 0 12-07-2008 03:27 PM
Python2.5-devel is unable to find installed Python2.5 Setya SUSE / openSUSE 1 06-08-2007 01:35 AM
Python2.4 sanu Linux - Newbie 1 04-01-2005 07:31 AM
python2.2 is not available? darrylneufeld Fedora 4 06-01-2004 08:10 AM
python2 programming maseby Programming 4 10-26-2003 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration