Install several versions of the rpm packet

I need to use python2.5. But my system (FC11) have python 2.6 only. How can I install and use several versions of python with yum or rpm? Or maybe I need to compile python 2.6 from sources?

Answer

Does FC11 not ship with Python 2.5 at all, or is it just not installed by default?

On an Ubuntu 9.04 machine I have both available:

$ apt-cache search python | egrep '^python2.6 |^python2.5 '
python2.5 - An interactive high-level object-oriented language (version 2.5)
python2.6 - An interactive high-level object-oriented language (version 2.6)

But only 2.6 is currently installed:

$ dpkg -l | egrep 'python2.6 |python2.5 '
ii  libpython2.6    2.6.2-0ubuntu1    Shared Python runtime library (version 2.6)
ii  python2.6       2.6.2-0ubuntu1    An interactive high-level object-oriented la

I can still install 2.5 if I want to, with:

$ sudo aptitude install python2.5

Perhaps you can still install 2.5 using yum even though it’s not installed by default?

My apologies for not answering your question directly, but I do not have access to a Fedora machine. I hope this can help still.

Attribution
Source : Link , Question Author : Community , Answer Author : mlambie

Leave a Comment