How can I change the temp directory the Update installer uses?
5 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2022-6-8
回答: MathWorks Support Team
2022-6-13
How can I change the temp directory the Update installer uses?
采纳的回答
MathWorks Support Team
2022-6-8
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!