What can I delete?
So I've compiled sage from sources. The sage folder is now 3Gb. I guess I've no need for some files... What can I delete? Is there any reason I should not delete these things?
So I've compiled sage from sources. The sage folder is now 3Gb. I guess I've no need for some files... What can I delete? Is there any reason I should not delete these things?
In principle, you should be able to type make micro_release
, but this may be broken, depending on your platform. (I think that if it's broken, it will still result in a working Sage installation, just one that isn't as small as it should be.)
When you run sage micro_release
, it runs the script local/bin/sage-micro-release
, which among other things removes the directories devel/sage/build/temp.*
and devel/sage/build/lib.*
. You should be able to delete those safely by hand, if the script fails.
You can also safely remove the directory spkg/logs/
. If you're sure you're not going to need to reinstall anything, you could remove spkg/standard/
.
What about the update? Will removing of these folders affect update? And what is the righteous way of updating by the way? I heard it is `hg_scripts.pull()` - but never tried it yet. You were right - `micro_release` is broken - both in sage4.8 and 5.0;
For updates, I would try `sage --upgrade`, or `sage --upgrade URL`. I don't know how updating interacts with removing these folders.
You should be able to delete the devel
folder, assuming you don't want to re-compile or get involved in Sage development.
But docs seem to be in devel?
Yes, docs are in devel. I wouldn't delete all of devel.
Asked: 12 years ago
Seen: 1,069 times
Last updated: Jun 08 '12