How can I change the temp directory the Update installer uses?
5 views (last 30 days)
Show older comments
MathWorks Support Team
on 8 Jun 2022
Answered: MathWorks Support Team
on 13 Jun 2022
How can I change the temp directory the Update installer uses?
Accepted Answer
MathWorks Support Team
on 8 Jun 2022
Note that if the values below are set in the shell initialization or system wide environment variables,
it could affect any other Java programs the customer uses.
Windows
The Update Installer uses the system specified default temp directory to download files.
Users can change the TMP environment variable to be able to change the default temporary directory that the Update Installer uses
Linux
For the Java based installers like Update Installer, the default temporary-file directory is specified by the JVM's system property "java.io.tmpdir".
You can add the following lines to the shell initialization files (e.g. .bashrc) or directly on command-line.
For Bash shells:
export JAVA_TOOL_OPTIONS=-Djava.io.tmpdir=/new/tmp/dir
or
export _JAVA_OPTIONS=-Djava.io.tmpdir=/new/tmp/dir
For tcsh shells:
set JAVA_TOOL_OPTIONS=-Djava.io.tmpdir=/new/tmp/dir
or
set _JAVA_OPTIONS=-Djava.io.tmpdir=/new/tmp/dir
0 Comments
More Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!