Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-29-2006, 05:42 PM   #1
Registered: Jun 2003
Location: Harford County, Maryland
Distribution: Mandrake 10.1
Posts: 162

Rep: Reputation: 30
Installing Python upgrade..."devil's in the details"

I wish to upgrade my Python package (in my Mandrake 10.1) to '2.4.1' from the '2.3.4' that came with the distro.

A few niggling details have me wit: where should I effect the new installation? The standard 'hash/bang' line I use in my scripts is:


In the above referenced directory (/usr/bin) I have two executables, 'python*' and 'python2.3*'. Should I therefor move the downloaded .tgz file over to '/usr/bin' and do the 'unpacking, etc.' over there? Then, anticipating this glitch, will the 'system' automatically choose the newer update when I invoke 'python', or should I somehow disable the predecessors?
Old 07-29-2006, 08:28 PM   #2
Registered: Apr 2005
Location: Malaysia
Distribution: Fedora, Suse
Posts: 108

Rep: Reputation: 15
You can install the newer version anywhere you like actually The "python" in /usr/bin most likely is a symlink that points to "python2.3". So when you install python 2.4, you'll get an executable called "python2.4". Then you'll just have to modify the symlink in /usr/bin to point to your python 2.4, for example:
linux:/usr/bin #ln -s /yourinstallationpath/python2.4 python
Then everything that points to /usr/bin/python will be using the 2.4 version.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
System Information Made Easy : Contains of "/proc" folder in details thandermax Linux - News 4 01-17-2006 05:16 PM
[python] print "\033[5;",x,"H=>" datbenik Programming 1 01-05-2006 05:12 AM
How to use synaptic "smart upgrade or "apt-get dist-upgrade" PenguinMolester Ubuntu 2 04-04-2005 02:11 PM
Display "Details during Startup" RHEL4 backroger Linux - Enterprise 4 03-26-2005 01:31 PM
User "list" running process "python" TroelsSmit Linux - Newbie 2 02-22-2005 04:55 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:15 PM.

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