How do I install a MATLAB update silently or non-interactively?
68 views (last 30 days)
Show older comments
MathWorks Support Team
on 29 Nov 2018
Edited: MathWorks Support Team
on 19 Jun 2023
How do I install a MATLAB update silently or non-interactively?
Accepted Answer
MathWorks Support Team
on 19 Jun 2023
Edited: MathWorks Support Team
on 19 Jun 2023
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 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!