1

My dedicated server is centos with Cpanel. I need to upgrade python for eyeD3 program. How do I upgrade to latest python stable? From cPanel or SSH?

3 Answers 3

1

If you use CentOS, yum provide update python. You can update Python to >= 2.5 at your own risk.

I recommendation install new version Python in /opt.

2
  • what risks are possible ? Jan 29, 2011 at 17:20
  • 1
    @ahmet CentOS uses python 2.5 for a lot of internal things. yum is one of the biggies. Basically, its par for the course that you just install a version of python from source in the /opt/ directory. It ends up being cleaner all around. Feb 3, 2011 at 15:58
2

A good practice for this is installing another version of Python side by side with the system provided one, python on CentOS (and most Linux distros) is very heavily tied with the operating system, upgrading the system one to a new version is not recommendable.

I normally add a new python repo and point my program to use that version of python instead, there's an amazing guide for installing python side by side (you'll need shell access for this), check it out here http://www.question-defense.com/2009/12/25/how-to-install-python-2-6-on-centos-5-without-breaking-yum

1

The best way to do it is via SSH. Download the latest python version or use Yum (or yum search for specific packages). After that add the new version of python to PATH if necessary, and configure the application to use that path (of the newly installed python). Here how you can download python and install it:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .