ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 01 Apr 2018 22:09:50 +0200Moving my Sage install (on Linux)https://ask.sagemath.org/question/7717/moving-my-sage-install-on-linux/Hello,
I installed Sage on a partition that is now running out of space. I'd like to move its ~1.5Gigs to another partition that has space aplenty. Is there a way to do this, maintaining the ability to invoke sage from the terminal etc., other than to rebuild it completely in the new spot (which takes ages on my slow machine)?
thanks!
Sun, 10 Oct 2010 06:45:32 +0200https://ask.sagemath.org/question/7717/moving-my-sage-install-on-linux/Answer by burcin for <p>Hello,</p>
<p>I installed Sage on a partition that is now running out of space. I'd like to move its ~1.5Gigs to another partition that has space aplenty. Is there a way to do this, maintaining the ability to invoke sage from the terminal etc., other than to rebuild it completely in the new spot (which takes ages on my slow machine)?</p>
<p>thanks!</p>
https://ask.sagemath.org/question/7717/moving-my-sage-install-on-linux/?answer=11721#post-id-11721You can just move the directory containing Sage to the new place. When you are done copying the files, go to that directory and run the `sage` script directtly, either by clicking on it from the files manager or by typing
$ ./sage
on the command prompt.
The first time you run Sage from its new location, it will go through the files and make the changes required. After it starts, use the `install_scripts()` function to replace the old scripts on your system to launch Sage, Singular, Gap, etc. with the new ones.Sun, 10 Oct 2010 14:09:49 +0200https://ask.sagemath.org/question/7717/moving-my-sage-install-on-linux/?answer=11721#post-id-11721Comment by v_2e for <p>You can just move the directory containing Sage to the new place. When you are done copying the files, go to that directory and run the <code>sage</code> script directtly, either by clicking on it from the files manager or by typing</p>
<pre><code>$ ./sage
</code></pre>
<p>on the command prompt. </p>
<p>The first time you run Sage from its new location, it will go through the files and make the changes required. After it starts, use the <code>install_scripts()</code> function to replace the old scripts on your system to launch Sage, Singular, Gap, etc. with the new ones.</p>
https://ask.sagemath.org/question/7717/moving-my-sage-install-on-linux/?comment=41862#post-id-41862This does not seem to work any more. At least, for the 8.1 version it does not. And the [documentation](https://doc.sagemath.org/html/en/installation/source.html) now says "*...once you have built Sage, you will not be able to move or rename its directory without likely breaking Sage.*"Sun, 01 Apr 2018 22:09:50 +0200https://ask.sagemath.org/question/7717/moving-my-sage-install-on-linux/?comment=41862#post-id-41862Comment by Plausible for <p>You can just move the directory containing Sage to the new place. When you are done copying the files, go to that directory and run the <code>sage</code> script directtly, either by clicking on it from the files manager or by typing</p>
<pre><code>$ ./sage
</code></pre>
<p>on the command prompt. </p>
<p>The first time you run Sage from its new location, it will go through the files and make the changes required. After it starts, use the <code>install_scripts()</code> function to replace the old scripts on your system to launch Sage, Singular, Gap, etc. with the new ones.</p>
https://ask.sagemath.org/question/7717/moving-my-sage-install-on-linux/?comment=22581#post-id-22581Perfect -- Thank you!Mon, 11 Oct 2010 18:30:43 +0200https://ask.sagemath.org/question/7717/moving-my-sage-install-on-linux/?comment=22581#post-id-22581