How do I silently install Support Packages in MATLAB R2018a or newer?
94 views (last 30 days)
Show older comments
MathWorks Support Team
on 19 Mar 2018
Edited: MathWorks Support Team
on 22 Oct 2025 at 14:30
How do I silently or noninteractively install Support Packages in MATLAB R2018a or newer?
Accepted Answer
MathWorks Support Team
on 22 Oct 2025 at 0:00
Edited: MathWorks Support Team
on 22 Oct 2025 at 14:30
There are two methods to install Support Packages in MATLAB silently:
Notes:
1) Silent install pertains to the installation only, not the "hardware setup". Any third-party support packages that require an interactive setup will still require your interaction.
2) On Linux and MacOS, support packages are installed in the user directory by default. If you need to install support packages for all users, please change the support package root to a shared directory before installing:
How do I change the directory my support packages get installed in?https://www.mathworks.com/matlabcentral/answers/377211
NOTE: This process is only available in MATLAB releases R2019a and newer.
The MATLAB Package Manager (MPM) can install MathWorks support packages for releases R2019a and newer non-interactively without the need to download the support package files beforehand. MPM is supported on Linux, Windows, and macOS.
Assuming you already have MATLAB R2023b installed in the default location on Linux (just for example, mpm can be used on Windows or Mac too) and you want to install the MATLAB Support Package for Arduino Hardware non-interactively via MPM, the three commands would be:
wget https://www.mathworks.com/mpm/glnxa64/mpm
chmod +x mpm
./mpm install --release=R2023b --destination=/usr/local/MATLAB/R2023b --products MATLAB_Support_Package_for_Arduino_Hardware
For full instructions, please refer to the documentation for MPM:
Some support packages cannot be installed via mpm. See the list here:
mpm install - Limitations
NOTE: Support packages are installed in the user's home directory by default on Linux and MacOS. If running MPM as sudo, this will install support packages into the root user's home directory. To prevent this, please use sudo "HOME=${HOME}" to preserve the user's Home directory, i.e.:
sudo HOME=${HOME} ./mpm install . . .
By default, mpm will download the support package files during the installation, but you can also download the files in advanced via an "mpm download" command and then complete an offline installation using the "--source" flag in your "mpm install" command instead of the "--release" flag.
Two tips for using "mpm download" to download support packages:
1. Use the "--no-deps" flag if you only want to download the support package files, not dependencies like MATLAB itself and related toolboxes. This reduces the size of the downloaded files and is more optimal if MATLAB is already installed on the offline machine.
2. Make sure the release that you specify in the "mpm download" command matches the update-level of the MATLAB installation on the offline machine perfectly, for example "--release=R2024aU6" for R2024a Update 6. If you do not specify an update level in the "--release" flag, mpm defaults to the latest update. If you have some older update of that MATLAB release installed on the offline machine, you will get an error.
For more information, see:
mpm download
NOTE: This process is only available in MATLAB releases R2018b - R2024b
To install a support package silently using this method, you will first need to follow the procedure in the article below to download the files for the support package beforehand:
How do I Download and Install a Support Package on an Offline Machine?https://www.mathworks.com/matlabcentral/answers/293235-how-do-i-download-and-install-a-support-package-on-an-offline-machine
Once you obtained the installation files for the support package, please follow the below workflow to silently install support packages:
1. If MATLAB has not been run on the target machine, you must set the Support Package root first. Set the Support Package root by launching MATLAB, running the following command in the Command Window, and then closing MATLAB:
>> installFolder = matlabshared.supportpkg.getSupportPackageRoot; matlabshared.supportpkg.setSupportPackageRoot(installFolder);
2. The silent installer executable takes two arguments: A path to the location of the downloaded files, and the location of an input file. When you download the support packages for installation, the installer creates a configuration file for use with silent install, named ssi_input.txt. Inside this file is a list of the support packages to be installed. This input file is updated automatically when support packages are downloaded. If there are any support packages you want to remove from the installation, you can comment them out or delete the lines from the input file.
If there is a failure in downloading a support package, that support package will not be listed in the input file. Before performing a silent install, check the input file to make sure that all the support packages you expect to be installed are listed. Any failures during download are listed in the installation log file. For details on how to get your installation log, please see the following article:
Where are the MATLAB Installation and Activation log files located?https://www.mathworks.com/matlabcentral/answers/101927
3. After downloading the Support Packages, please see the following commands to run in a terminal to install, depending on your operating system:
For Windows:
cd DRIVE:\<MATLAB_PATH>\bin\win64
SupportSoftwareInstaller.exe -downloadfolder <path_to_download_folder> -inputFile <path_to_input_file>
For example:
cd C:\Program Files\MATLAB\R2023b\bin\win64
SupportSoftwareInstaller.exe -downloadfolder C:\Users\jsmith\Downloads\MathWorks\SupportPackages\R2023b -inputFile C:\Users\jsmith\Downloads\MathWorks\SupportPackages\R2023b\ssi_input.txt
For Linux:
cd <MATLAB_PATH>/bin/glnxa64
./SupportSoftwareInstaller -downloadfolder <path_to_download_folder> -inputFile <path_to_input_file>
For example:
cd /usr/local/MATLAB/R2023b/bin/glnxa64
./SupportSoftwareInstaller.sh -downloadfolder /home/jsmith/Downloads/MathWorks/SupportPackages/R2023b -inputFile /home/jsmith/Downloads/MathWorks/SupportPackages/R2023b/ssi_input.txt
For MacOS:
cd <MATLAB_PATH>/bin/maci64
./SupportSoftwareInstaller.sh -downloadfolder <path_to_download_folder> -inputFile <path_to_input_file>
For example:
cd /Applications/MATLAB_R2018b.app/bin/maci64
./SupportSoftwareInstaller.sh -downloadfolder /Users/jsmith/Downloads/MathWorks/SupportPackages/R2023b -inputFile /Users/jsmith/Downloads/MathWorks/SupportPackages/R2023b/ssi_input.txt
For the path to the input file and path to user’s install folder, you can use an absolute or relative path.
This command may take several minutes to run. When it is done, check the installation log file to make sure the installation completed.
1 Comment
Eric
on 1 Mar 2019
I have the same problem as Alireza Soleimani. Why should a silent installer complain about a display not being available?
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!