Main Content

mpm download

(Linux, Windows, Mac) Download products from operating system command line

Using mpm download at the operating system command line requires MATLAB® Package Manager. See Get MATLAB Package Manager.

If you instead want to manage packages within MATLAB, see Package Management (MATLAB).

Description

mpm download --release=<release> --destination=</full/path/to/destination> --products=<product1> ... <productN> downloads MathWorks® products and support packages for the specified release to the designated destination folder. MATLAB Package Manager (mpm) also downloads any required products.

Run this command from the operating system command line. You can then deploy the downloaded products onto multiple computers or install the products on offline machines.

When you download products on one computer and install them on another, both computers must use the same version of mpm. For example, if you download products using the latest version of mpm, install the products on the target computer using the latest version of mpm. To download the latest version of mpm, see Get MATLAB Package Manager.

example

mpm download ... --platforms=<platform1> ... <platformN> also specifies the computer platforms you want to download the products for. Specify this option after the required options shown in the preceding syntax. If you do not specify --platforms, then mpm downloads products for the platform of the computer performing the download.

example

mpm download --inputfile=</full/path/to/file> downloads products using an input file. You can download a template input file for your release from the mpm-input-files folder on GitHub®. You must specify --inputfile without any other options.

example

Examples

collapse all

Download MathWorks products and support packages using mpm download, and install them using mpm install.

  1. Download the latest release of Simulink® and Deep Learning Toolbox™ Model for ResNet-50 Network to a folder on your computer. mpm also includes the required products in the download, MATLAB and Deep Learning Toolbox.

    Linux® or Mac:

    ./mpm download --release=R2024b --destination=/home/<USER>/downloads/mathworks --products=Simulink Deep_Learning_Toolbox_Model_for_ResNet-50_Network

    Windows® (run as administrator):

    .\mpm.exe download --release=R2024b --destination="C:\Users\<USER>\Downloads\MathWorks" --products=Simulink Deep_Learning_Toolbox_Model_for_ResNet-50_Network
  2. (Optional) To install the products on a different computer, make the downloaded folder available for installation on the target 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.

  3. Install the downloaded products on the target computer using mpm install.

    • Using the --source option, specify the absolute path to the downloaded folder. This example assumes that you are downloading and installing the products on the same computer, so the --destination option of mpm download and the --source option of mpm install specify the same folder.

    • Using the --destination option, specify the absolute path to the location where you want to install the products.

    • Using the --products option, specify the products you want to install. mpm also installs the required products, MATLAB and Deep Learning Toolbox.

    Linux or Mac:

    ./mpm install --destination=/home/<USER>/matlab --source=/home/<USER>/downloads/mathworks --products=Simulink Deep_Learning_Toolbox_Model_for_ResNet-50_Network

    Windows (run as administrator):

    .\mpm.exe install --destination="C:\Users\<USER>\matlab" --source="C:\Users\<USER>\Downloads\MathWorks" --products=Simulink Deep_Learning_Toolbox_Model_for_ResNet-50_Network

Download MathWorks products and support packages for multiple platforms, copy them to a shared network drive, and install them on the target platforms.

  1. Download the latest release of Simulink and Deep Learning Toolbox Model for ResNet-50 Network to a folder on your computer. Download the products for all Linux, Windows, and Mac platforms that mpm supports. mpm also includes the required products in the download, MATLAB and Deep Learning Toolbox.

    Linux or Mac:

    ./mpm download --release=R2024b --destination=/home/<USER>/downloads/mathworks --products=Simulink Deep_Learning_Toolbox_Model_for_ResNet-50_Network --platforms=glnxa64 win64 maca64 maci64

    Windows (run as administrator):

    .\mpm.exe download --release=R2024b --destination="C:\Users\<USER>\Downloads\MathWorks" --products=Simulink Deep_Learning_Toolbox_Model_for_ResNet-50_Network --platforms=glnxa64 win64 maca64 maci64
  2. Make the downloaded folder available for installation on the target computers by doing one of the following:

    • Copy the folder to a shared network drive that the computers can access.

    • Copy the folder directly to the computers using removable media.

  3. On each target computer, install the downloaded products using mpm install.

    • Using the --source option, specify the absolute path to the downloaded folder. This example assumes that you copied the downloaded folder to a shared network drive.

    • Using the --destination option, specify the absolute path to the location where you want to install the products.

    • Using the --products option, specify the products you want to install. mpm also installs the required products, MATLAB and Deep Learning Toolbox.

    Linux or Mac:

    ./mpm install --destination=/home/<USER>/matlab --source=/usr/local/share/mathworks --products=Simulink Deep_Learning_Toolbox_Model_for_ResNet-50_Network

    Windows (run as administrator):

    .\mpm.exe install --destination="C:\Users\<USER>\matlab" --source="Z:\Share\MathWorks" --products=Simulink Deep_Learning_Toolbox_Model_for_ResNet-50_Network

Download products and support packages for the latest MATLAB release by specifying download options in an input file. Then, copy the products to another computer, and install them on that computer.

  1. From the mpm-input-files folder, open the folder for the latest MATLAB release, and download a copy of the mpm_input_<release>.txt file.

  2. In the downloaded file, configure the MATLAB download by uncommenting lines that start with a single # and updating their values.

    Specify the download options.

    • Release Update Level (Optional)

      By default, mpm downloads the latest versions of MATLAB products 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 products for the platform of the computer that runs the mpm download command.

      If you plan to install these products on computers that have different platforms, copy this code block into the input file, and 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, this code downloads products for Linux (glnxa64), Windows (win64), Mac Apple silicon (maca64), and Mac Intel® (maci64) platforms.

      platform.glnxa64
      platform.win64
      platform.maca64
      platform.maci64

    Specify the products and support packages to download.

    • Products

      Uncomment the product.Simulink and product.Statistics_and_Machine_Learning_Toolbox lines for installing Simulink and Statistics and Machine Learning Toolbox™. You do not need to uncomment the required product, MATLAB, because mpm downloads required products automatically.

      product.Simulink
      # ...
      product.Statistics_and_Machine_Learning_Toolbox
    • Support Packages

      Uncomment the product.Deep_Learning_Toolbox_Model_for_ResNet-50_Network line to download Deep Learning Toolbox Model for ResNet-50 Network. You do not need to uncomment the required product, Deep Learning Toolbox.

      product.Deep_Learning_Toolbox_Model_for_ResNet-50_Network

      Save the file.

  3. Download the products and support package using mpm download. Specify the full path to the input file you downloaded and updated.

    Linux or Mac:

    ./mpm download --inputfile=/path/to/file/mpm_input_<release>.txt
    

    Windows (run as administrator):

    .\mpm.exe download --inputfile="\path\to\file\mpm_input_<release>.txt"
  4. (Optional) To install the products on a different computer, make the downloaded folder available for installation on the target 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.

  5. Install the downloaded products on the target computer using mpm install.

    • Using the --source option, specify the absolute path to the downloaded folder.

      • This example assumes that you are downloading and installing the products on the same computer, so the --destination option of mpm download and the --source option of mpm install specify the same folder.

      • On Mac platforms, when installing products downloaded using an input file, mpm appends the extension .app to the download folder. Include this extension in the --source option.

    • Using the --destination option, specify the absolute path to the location where you want to install the products.

    • Using the --products option, specify the products you want to install. mpm also installs the required products, MATLAB and Deep Learning Toolbox.

    Linux

    ./mpm install --source=/home/<USER>/downloads/mathworks --destination=/home/<USER>/matlab --products=Simulink Statistics_and_Machine_Learning_Toolbox Deep_Learning_Toolbox_Model_for_ResNet-50_Network

    Mac:

    ./mpm install --source=/home/<USER>/downloads/mathworks.app --destination=/home/<USER>/matlab --products=Simulink Statistics_and_Machine_Learning_Toolbox Deep_Learning_Toolbox_Model_for_ResNet-50_Network

    Windows (run as administrator):

    .\mpm.exe install --source="C:\Users\<USER>\Downloads\MathWorks" --destination="C:\Users\<USER>\matlab" --products=Simulink Statistics_and_Machine_Learning_Toolbox Deep_Learning_Toolbox_Model_for_ResNet-50_Network

Input Arguments

collapse all

Release to download, specified as a MATLAB release name.

  • To download the latest version of a release, which includes all updates, specify only the release name, for example R2024b.

  • To download a specific update release, specify the release name with an update number suffix, for example R2024bU4.

  • To download the initial version of a release, without any updates, specify the release name with an update 0 suffix, for example R2024bU0, R2024bGR.

Example: --release=R2024b

Destination folder for the download, specified as an absolute folder path. If the destination folder does not exist, mpm creates it, including any intermediate folders.

The destination folder must not contain any product files previously downloaded using mpm download. If you specify a folder with existing product files, mpm issues an error.

Example: --destination=/home/<USER>/downloads/mathworks

Products and support packages to download, specified as a list of product and support package names, separated by spaces.

For the full list of products and support packages that mpm can download, open the input file for your release from the mpm-input-files folder on GitHub. Specify products using the format shown in the input file. For example, suppose you want to download Computer Vision Toolbox™. In the input file, the line containing this product is formatted as follows, with spaces replaced by underscores.

#product.Computer_Vision_Toolbox

Copy the text after the dot into the --products option.

--products=Computer_Vision_Toolbox

You do not need to specify required products. If a product or support package requires another product, mpm includes it in the download.

If a product or support package name includes parentheses and your command-line shell does not interpret parentheses as text, insert an escape character before each parenthesis. Use the escape character supported by your shell. For example, to download the support package Computer Vision Toolbox Model for R(2+1)D Video Classification using backslash escape characters, specify --products as follows:

--products=Computer_Vision_Toolbox_Model_for_R\(2+1\)D_Video_Classification

For information on products that mpm is unable to download, see Limitations.

Example: --products=MATLAB Simulink Fixed-Point_Designer downloads MATLAB, Simulink, and Fixed-Point Designer™.

Example: --products=Deep_Learning_Toolbox downloads Deep Learning Toolbox and its required product, MATLAB.

Platforms to download products for, specified as a list of platforms separated by spaces. The valid platforms are:

  • glnxa64 — Linux

  • win64 — Windows

  • maca64Mac Apple silicon

  • maci64Mac Intel

Specify this option when the platform of the computer used to download the products differs from the platform of the computer on which you will install the products. If you do not specify --platforms, then mpm downloads products for the platform you used to download the products. If you try to install products on a platform you did not download products for, then mpm issues an error.

To specify platforms in an input file, copy this code block into the input file. Then, uncomment the platforms you want to download products for.

## Uncomment the lines for the platforms you want to download products for.

#platform.glnxa64
#platform.win64
#platform.maca64
#platform.maci64

Example: --platforms=glnxa64

Example: --platforms=glnxa64 win64 maca64 maci64

Input file for configuring your download, specified as the absolute path to a valid input file.

Download a template input file for your release from the mpm-input-files folder on GitHub. Using this file, you can specify the download folder and select the products and support packages you want to download without having to enter them at the command line. You must specify --inputfile without any other options.

Example: --inputfile=/home/<USER>/matlab/mpm_input_r2024a.txt

Limitations

  • mpm supports downloading products and support packages for these releases only:

    • Products — R2017b or later

    • Support packages — R2019a or later

  • Not all MathWorks products are available for all operating systems and architectures that MATLAB supports:

  • mpm supports downloading specific update releases only for R2021b and later. For R2021a and earlier, mpm downloads the latest update release.

  • mpm does not support downloading these products:

    • IEC Certification Kit

    • DO Qualification Kit

    • Simulink Code Inspector™

    • Polyspace® Client™ for Ada

    • Polyspace Server™ for Ada

    To download and install these products, first download an ISO image containing these products from MathWorks Downloads. Then, mount the image, and use mpm install to install products from that image. Specify the path to the mounted image in the --source option. For an example, see Install Products from Mounted ISO Image.

  • mpm does not support downloading these support packages:

    • Image Acquisition Toolbox™ Support Package for GenICam™ Interface

    • Image Acquisition Toolbox Support Package for GigE Vision® Hardware

    • Simulink Coder™ Support Package for BBC micro:bit

    • MATLAB Support Package for IP Cameras

    • New Desktop for MATLAB

    • MATLAB Support Package for Parrot® Drones

    • MATLAB Support Package for Ryze Tello Drones

    • Simulink Real-Time™ Support Package

    To download and install these support packages:

    1. Download the Support Software Downloader for your platform.

    2. Run the downloader. Select your release, the support packages you want, and the destination folder for the download.

    3. Once the download is complete, open the readme.txt file in the download folder. Follow the instructions in that readme file to install the support packages.

<#include "/includes_content/releases/_global/live_chat.html"/>