Ask Your Question

Installing multiple versions of sage

asked 2013-01-05 14:39:17 -0500

afleck gravatar image

updated 2013-01-05 14:44:06 -0500

Basically, I want to install multiple versions of sage without having to recompile for each version. Say I have sage-5.5 in a directory named "sage." Is there a way to use my existing sage to upgrade to 5.6-beta2 without having to rebuild everything and to still retain both copies?

EDIT: I tried sage.misc.package.upgrade, but that didn't work with the beta.

edit retag flag offensive close merge delete



Well, you could just make a complete copy of your sage-5.5 (maybe named, sage-5.5-to-be-upgraded) and then upgrade that. Or? Maybe I'm missing something to your question.

kcrisman gravatar imagekcrisman ( 2013-01-05 15:55:02 -0500 )edit

I was trying to do it with the beta, I'm not sure how to manually upgrade sage.

afleck gravatar imageafleck ( 2013-01-06 02:24:28 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-01-07 00:25:23 -0500

ppurka gravatar image

updated 2013-01-07 00:27:45 -0500

I will assume you are in a unix environment.

  1. Copy your sage to a new directory using something like

    cd [one directory above where your sage-5.5 is]

    cp -Pr sage-5.5 sage-5.6.beta2

  2. Fix the installation in the new directory:

    ./sage-5.6.beta2/sage -c

  3. Determine the upgrade path URL. For instance, if you are using the main sage server, then the URL is

  4. Upgrade the copied directory to the newer version:

    ./sage-5.6.beta2/sage -upgrade

That should upgrade your sage installation, while keeping the old installation intact. Change the URL to a mirror that is closer to your location so that the download happens faster (we can only hope that it downloads faster, given how crazy the routers work).

I must add that this kind of update is unsupported. I think only upgrades between release versions are supported.

edit flag offensive delete link more


Well, it's supported, just not always guaranteed to work as an "in-progress" beta. But it should work fine.

kcrisman gravatar imagekcrisman ( 2013-01-07 01:50:36 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-01-05 14:39:17 -0500

Seen: 272 times

Last updated: Jan 07 '13