How do I install a MATLAB update silently or non-interactively?

72 次查看(过去 30 天)

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2023-6-19
It is possible to install updates for MATLAB from a command-line environment. The process requires that the computer in which you hope to install updates into already has MATLAB installed, and that the MATLAB update installer be downloaded on the machine you wish to perform the update on. Note: before running the update installer on any machine, you need to ensure that there are no sessions of MATLAB running on the machine in question.
R2023a and newer
Like R2018b-R2022b, an offline update installation will be performed silently by default. See the link below for complete instructions.
Install Update Release on Offline Machine
R2018b-R2022b
As of R2018b, the offline update installation workflow runs silently by default, and you can find instructions on this process in the article below.
How do I manually install an update for MATLAB R2018b through R2022b?
R2018a and earlier
Windows
Run the installer  from a system prompt with the /S flag (indicating that the installation will be silent), providing the MATLAB root directory. For example:
start /wait R2018a _ Update _ # /S /D=C:\Program Files\MATLAB\R2018a
(replace # with the Update number you are installing)
If the Update is already installed, the operation will still run, but no changes will be made.
macOS
Invoke the PKG from a terminal shell using proper privileges. For example, for the default installation location of /Applications, the command would be:
sudo installer -dumplog -pkg /Users/<username>/Downloads/MATLAB_R2018a_Update_#.pkg -target
(replace # with the Update number you are installing)
If the Update is already installed, the operation will still run, but no changes will be made.
Linux
1. In a terminal window, navigate to the folder where you saved the downloaded installer. Start the installer by entering the command:
./R2018a_Update_#_glnxa64.sh
(replace # with the Update number you are installing)
2. When prompted, type the path to the installation directory, or just hit Enter to specify the default (shown on the screen when it asks for the directory).
3. When the installation is complete, the installer will display:
=============== UPDATE INSTALLATION SUCCEEDED ===============

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

标签

尚未输入任何标签。

产品


版本

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by