MATLAB Answers

0

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

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

Tags

No tags entered yet.

Products


Release

R2018a

1 Answer

Answer by MathWorks Support Team on 1 Apr 2019
Edited by MathWorks Support Team on 1 Apr 2019
 Accepted Answer

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. Also 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.
R2018b and later
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 can I install MATLAB updates on an offline machine?
If you need to download the update installer for this process you can find information for that in the following article
Where can I find the MATLAB offline update installer?
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.
Mac
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 Comments

Sign in to comment.