Ask Your Question

I just built a Sage system. What files may I delete with impunity?

asked 2019-08-02 21:03:57 +0200

dyne2meter gravatar image

updated 2019-08-02 21:18:36 +0200

I have just built Sage 7.6 on an Apple iMac 8,1 running OS X version 10.11.6. I started with a download of a compressed source distribution from the Sage github repository (without cloning the repository itself, since I don't plan to contribute any development ideas or comments for awhile). Doctesting went very well, with only two failed tests out of the entire suite:

sage -t src/sage/doctest/  # 1 doctest failed
sage -t src/sage/modules/vector_rational_dense.pyx  # 1 doctest failed

I also downloaded the equivalent binary distribution and doctested that, obtaining these results:

sage -t src/sage/calculus/  # 1 doctest failed
sage -t src/sage/doctest/  # 1 doctest failed
sage -t src/sage/graphs/  # 3 doctests failed
sage -t src/sage/graphs/  # 5 doctests failed
sage -t src/sage/graphs/  # 7 doctests failed
sage -t src/sage/modules/vector_rational_dense.pyx  # 1 doctest failed
sage -t src/sage/tests/  # Timed out after testing finished

I did expect my own build to do better, but the installation I ended up with is fully 2 GB larger than what came in the binary distribution. Much (more than 1/3) of the overage is in a directory


which is not present in the binary distribution, and I assume it is only of interest to developers. Is that correct? I will trim my build by also removing two large files


but keep my log and upstream files in case I want to review the build or look at the sources. All this is pending any further advice I get in the next few days about files that are generally only of interest to developers.

edit retag flag offensive close merge delete



Why version 7.6? That's pretty old. Did more recent versions fail for you?

John Palmieri gravatar imageJohn Palmieri ( 2019-08-02 21:25:56 +0200 )edit

Thanks for your replies! I see that in the binary downloads there is an 8.6 release that is listed for my system, Mac OS X 10.11. That would give me the benefit of subsequent bug fixes.

I must agree that sage-7.6 is an old release, but my hardware is much, much older! I will give it a try on the 8.6 build after I begin to learn something substantive about using Sage -- intro linear algebra is my current study. I will certainly report back, here, if I experience problems beyond doc testing.

I'm inclined immediately to accept your answer, given below. Am I the only one who can do that?

dyne2meter gravatar imagedyne2meter ( 2019-08-02 21:44:48 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-08-02 21:25:30 +0200

make clean and make misc-clean are safe, although the second of these will remove log files. make micro_release should also be safe, although it will remove all of the built documentation. Removing everything in local/share/doc/sage/ except for html and (if present) pdf should be safe. Removing upstream will still allow Sage to run, but you would then need to download a lot of tar files if you ever wanted to rebuild it.

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

1 follower


Asked: 2019-08-02 21:03:57 +0200

Seen: 251 times

Last updated: Aug 02 '19