Ask Your Question

Full remove and re-install SAGE

asked 2013-09-05 09:44:27 +0200

mresimulator gravatar image

Hi experts!

Im using ubuntu 13.04 64bits and SAGE 5.11. How can I full remove SAGE and then reinstall it? I wanna a deep full remove of SAGE and then reinstall it because a porblem without solution up to now:

Thanks a lot!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-09-05 12:13:33 +0200

mresimulator gravatar image

updated 2013-09-05 13:47:46 +0200

kcrisman gravatar image


I only use SAGE in my laptop. I dont use sage-notebook. In this case, please correct me if I'm wrong, I must do this:

  1. Remove .sage/ directory. (where is it?)
  2. Remove /usr/lib/sagemath/
  3. Remove .hgrc file (Where are these?)
  4. Reinstall sagemath.

Is this ok?

Thanks a lot

edit flag offensive delete link more


See my answer on your other question. In particular, `.sage/` should be a subdirectory of your "home" directory.

kcrisman gravatar imagekcrisman ( 2013-09-05 13:48:15 +0200 )edit

answered 2013-09-05 10:37:41 +0200

kcrisman gravatar image

Sage doesn't really leave a lot of stuff littered about your filesystem. You should first remove your actual Sage folder (in the question you reference, /usr/lib/sagemath/, or for others perhaps in sage-5.12/ in your home directory, depending on where you put it). That will get rid of 99% of things.

The other thing that might be causing trouble is the .sage/ folder, where a lot of prefs and other data is stored (but no functionality). You'd have to remove that folder, which is ordinarily in your home directory, but which can be moved if you use the DOT_SAGE environment variable. The downside is that it will also remove all your Sage notebook worksheets, if you have been using those - it's possible to download them en masse, though, or to save that part of that folder.

Finally, Sage does sometimes create things like .hgrc, which are configuration files for programs like matplotlib and Mercurial that Sage uses. You could remove them, though they should be harmless unless you've done something to them.

edit flag offensive delete link more

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-09-05 09:44:27 +0200

Seen: 2,602 times

Last updated: Sep 05 '13