After installation Mathematica 8 for Linux takes more than 3GB in the /usr/local/Wolfram/ directory. I suspect that not all of it is relevant if I want to do some occasional computations. Are there subdirectories which can be deleted safely to save some space?
migrated from stackoverflow.com May 29 '12 at 19:38
Under Windows you can use WinDirStat to easily visualize the space allocation within a drive or directory tree. That page recommends KDirStat for Linux and Disk Inventory X for OS X. |
|||||||||||||
|
|
Since Windows doesn't display directory sizes for me I wrote a tiny utility to let Mathematica display them in a collapsible tree form (code at the bottom). I opened up some candidates for deletion, but you should try them first by moving the specific directories out of the MMA directory structure. As Image_doctor said, the documentation is a good sized candidate, as well as the 32/64 bit versions of the binaries suggested by Szabolcs. Further candidates can be found in the Links directory (but don't touch the MathLink directory; many of the others are probably safe, but no guarantee).
|
|||||
|
|
Half of it appears to be in ../Documentation , you could delete that and look everything up on the Wolfram site on the web |
|||
|
|
|
In general, you can delete directories that correspond to settings of
since Mathematica on my machine has
Additionally, as an extreme measure, on OS X
and you can use
and then rename the appropriate bitted kernel to |
|||
|
|



SystemFiles/Kerneldirectory will have several subdirectories which have a 64-bit and a 32-bit version. If you are using a 32-bit system, you might try deleting the 64-bit versions. It should save a few hundred MB. – Szabolcs May 29 '12 at 19:44SystemFiles/Java/<$SystemID>. I did this not so much to save space but because the versions Mathematica installs are never updated, and old versions of the JRE have serious security vulnerabilities. (And Java 7 is much faster than Java 6, so there might be some performance benefit.) I checked the Java 7 release notes to make sure there weren't any major incompatibilities before doing this and haven't had problems so far, but YMMV. – Oleksandr R. May 30 '12 at 0:37