Ask Your Question

Revision history [back]

If I understand correctly, you have installed Sage both

  • from the distribution, using sudo apt install ...
  • from source, by downloading the source file, extracting it, and running make configure, ./configure, and make

Let's say your installed-from-source Sage is at /home/yourname/sagemath/sage, then you add an alias to it and place it to some directory that is in your PATH.

For example:

ln -s /home/yourname/sagemath/sage /usr/local/bin

or with sudo if necessary:

sudo ln -s /home/yourname/sagemath/sage /usr/local/bin

After that, running sage should run the Sage you want.