Install Support Packages on Offline Computer
Many MATLAB® and Simulink® products use support packages to interact with hardware or provide additional
processing capabilities. To install support packages on an offline computer, you must
download the support packages on a computer connected to the internet, copy the support
packages to the offline computer, and then install the support packages on the offline
computer using MATLAB Package Manager (mpm
).
Get MATLAB Package Manager (Requires Internet Connection)
MATLAB Package Manager (mpm
) is a command-line tool for
installing products and support packages from the operating system command line. To get
the latest version of mpm
for your platform, follow the instructions
in Get MATLAB Package Manager.
Configure Download Using Input File (Requires Internet Connection)
Get the mpm
input file for your MATLAB release and use it to configure your support package download.
From the mpm-input-files
folder on GitHub®, open the folder of the MATLAB release for which you want to download support packages, and then download
a copy of the input file. For
example:
mpm_input_r2024a.txt
In this input file, configure your support package download by uncommenting lines that
start with a single #
and updating their values.
Release Update Level (Optional)
By default,
mpm
downloads the latest versions of MATLAB support packages for the given release.To download a specific release update, uncomment the
updateLevel
line and change the update level. For example:updateLevel=0
downloads the general release.updateLevel=1
downloads update 1.
Download Folder (Required)
Uncomment the
destinationFolder
line and specify a download folder.Linux® or Mac example:
destinationFolder=/home/<USER>/downloads/mathworks
Windows® example:
destinationFolder=C:\Users\<USER>\Downloads\MathWorks
Platforms (Optional)
By default,
mpm
downloads support packages for the platform of the computer that runs thempm download
command.If you plan to install the support packages on computers that have different platforms, copy the following code block into the input file, and then uncomment the platforms of those computers.
## Uncomment the lines for the platforms you want to download products for. #platform.glnxa64 #platform.win64 #platform.maca64 #platform.maci64
For example, the code below downloads support packages for Linux (
glnxa64
), Windows (win64
), Mac Apple silicon (maca64
), and Mac Intel® (maci64
) platforms.platform.glnxa64 platform.win64 platform.maca64 platform.maci64
Support Packages
Uncomment the support packages you want to download. For example, the code below configures
mpm
to download two support packages. The required products, MATLAB and Simulink, are also included in the download.product.MATLAB_Support_Package_for_Arduino_Hardware # ... product.Simulink_Support_Package_for_Arduino_Hardware
Save the file.
Download Support Packages (Requires Internet Connection)
Download the support packages using mpm download
. Specify the
full path to the input file you downloaded and configured.
Linux or Mac:
./mpm download --inputfile=/path/to/file/mpm_input_<release>.txt
Windows:
.\mpm.exe download --inputfile="\path\to\file\mpm_input_<release>.txt"
Copy Downloaded Support Packages to Offline Computer
Make the downloaded folder available for installation on the offline computer by doing one of the following:
Copy the folder to a shared network drive that the computer can access.
Copy the folder directly to the computer using removable media.
Install Support Packages on Offline Computer
In the downloaded folder, navigate to the mpm/<arch>
subfolder,
where <arch>
is the platform architecture of the target computer,
such as glnxa64
(Linux) or win64
(Windows). This subfolder contains the version of mpm
that you
can use to install the downloaded support packages. On Linux and Mac platforms only, give executable permissions to mpm
so
that you can run it.
Linux or Mac:
cd /path/to/download/folder/mpm/<arch>
chmod +x mpm
Windows:
cd "\path\to\download\folder\mpm\<arch>"
Install the downloaded support packages on the target computer using mpm
install
.
Using the
--source
option, specify the absolute path to the downloaded folder.Using the
--destination
option, specify the absolute path to the MATLAB installation folder. If MATLAB is not installed already, thenmpm
installs it to this location.Note
You cannot use
--destination
to set the support package installation folder.mpm
automatically derives this folder from the product installation folder specified by--destination
. To change the support package installation folder, install MATLAB and then run the functionmatlabshared.supportpkg.setSupportPackageRoot
(MATLAB).Using the
--products
option, specify the support packages you want to install.mpm
also installs the required products, MATLAB and Simulink in this example, if they are not installed already.
Linux or Mac:
./mpm install --source=/path/to/download/folder --destination=/path/to/install/folder --products=MATLAB_Support_Package_for_Arduino_Hardware Simulink_Support_Package_for_Arduino_Hardware
Windows (run as administrator):
.\mpm.exe install --source="\path\to\download\folder" --destination="\path\to\install\folder" --products=MATLAB_Support_Package_for_Arduino_Hardware Simulink_Support_Package_for_Arduino_Hardware
Add Support Packages to Existing Offline Installation
Download additional support packages to add to the offline installation. Because you
installed all required products in the previous steps, specify the
--no-deps
option to omit them from the download.
Linux or Mac:
./mpm download --release=R2024a --destination=/path/to/download/folder --products=MATLAB_Support_Package_for_Raspberry_Pi_Hardware Simulink_Support_Package_for_Raspberry_Pi_Hardware --no-deps
Windows:
.\mpm.exe download --release=R2024a --destination="\path\to\download\folder" --products=MATLAB_Support_Package_for_Raspberry_Pi_Hardware Simulink_Support_Package_for_Raspberry_Pi_Hardware --no-deps
You can then copy the downloaded support packages to the offline machine and install
them using mpm install
, as shown in the previous sections.