Before this gets closed, I want to give an up-to-date opinion. The linked Q&A is 6 years old which is ages when it comes down to memory. To answer your questions
- Is there a way to select what parts of Mathematica I would like to install?
- If not, how safe is it to delete any files?
- Are there any alternative installations that will use less space?
No, for the desktop Mathematica there is no way to de-select some install components. No, in general, it is not safe to delete anything, although some ideas from the linked Q&A can be followed. The question about alternatives was answered by rhermans.
My 11.3 installation on Linux needs 9.6GB, but you have to put this into the perspective of today's memory requirements. My browser cache contains at this moment about 1GB of data. My sources of Jetbrains IDEA (this is really only the repository) is 15GB of data. My installation of Battlefield 1 and 4 is 80 GB each. Finally, my current research project contains scans that need 250GB.
I don't want to say that you shouldn't be concerned about saving memory, but maybe it's better to backup some old files and leave the Mathematica installation intact. SSD HDD memory is currently available at about 20 Cent per GB. That means, where I live (!), the space for a Mathematica installation costs me about the same as one loaf of bread.
Finally, to give you a practical tip: It was pointed out that the documentation use very much memory. I have never tested if hell breaks loose if you delete the documentation, but maybe you want to try this out. A better solution would be to delete only the output cells, but I wouldn't know how to automate this for all documenation pages.
When I see this correct, then the Documentation
directory in the installation path uses 5.1GB. However, there is more. Under SystemFiles/Components
, each directory contains a documentation path as well. These add up to 2.1GB. Therefore, it is safe to say that a very large portion of the Mathematica installation is just documentation.
I do not recommend to delete these directories, but it would be interesting to see if Mathematica would start at all.
Update
OK, good news. I crippled my 11.1 Mathematica to the bare minimum. I removed
- all Documentation
- all binaries and libraries with the
Linux
and Windows
architecture (I'm on Linux-x86-64
)
This took me with a shell about 3 minutes and as you can see
Mathematica is still functional. Even if you open a help-page nothing explodes. You simply get the warning message or the documentation search page.
Now, you certainly want to know how much I memory I could save :)
I'm now down to 2.8GB for the whole installation
$UserBaseDirectory/Paclets/Repository
. Components that are not needed by everyone are automatically downloaded to here on first use. A few of these can be very large. E.g. the CUDAResources one is 1.5 GB on my machine. If you've accidentally downloaded something large, I think it would be okay to delete it form there. $\endgroup$