MATLAB Answers

0

How do I install updates non-interactively?

How do I install updates non-interactively?

Tags

No tags entered yet.

Products


Release

R2018a

1 Answer

Answer by MathWorks Support Team on 14 Feb 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.
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 ===============
Additionally, detailed instructions can be found in the link below:

  0 Comments

Sign in to comment.