Ask Your Question

How do I upgrade sagemath from 7.4 to 8.2

asked 2018-07-26 07:14:06 -0500

Lukaku gravatar image

I'd like to upgrade sagemath directly without installing the software from scratch. May I have to add a specific repository or is there a command to execute it from consolle? thank you.

edit retag flag offensive close merge delete


Under what operating system? How was Sage installed?

slelievre gravatar imageslelievre ( 2018-07-26 15:27:09 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-07-26 15:26:01 -0500

slelievre gravatar image

updated 2018-07-27 02:49:52 -0500

In the terminal, cd to the directory of your Sage installation, then run the following commands (don't type the initial $ on each line, which represents the bash prompt).

  • update your sources to the latest stable version

    $ git pull origin master
  • optionally, set your computer to use many cores while building Sage

    $ export MAKE='make -j4'

    (replacing 4 by the number of cores on your machine)

  • build SageMath

    $ make

If the compilation fails, you might have to start it again from scratch:

$ make distclean
$ make
edit flag offensive delete link more



If you're going to run make distclean, you might as well download a fresh source tarball and build that. You could try the same but without make distclean, which might work. If it does work, it will be faster.

John Palmieri gravatar imageJohn Palmieri ( 2018-07-26 15:30:36 -0500 )edit

Thanks for voicing this concern. I updated my answer.

slelievre gravatar imageslelievre ( 2018-07-27 13:36:23 -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

1 follower


Asked: 2018-07-26 07:14:06 -0500

Seen: 56 times

Last updated: Jul 27