Main Content

mpm download

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

mpm download requires MATLAB® Package Manager. See Get MATLAB Package Manager.

Description

example

mpm download --release <release> --destination </full/path/to/destination> --products <product1> ... <productN> downloads MathWorks® products and support packages for a release to the specified destination folder. mpm also downloads any required products.

Run this command from the operating system command line. Use the downloaded products to deploy products onto multiple computers or to install them on offline machines.

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

Examples

collapse all

Download MathWorks products and support packages, copy them to another computer, and install them on that computer. This example assumes that both computers are using the same version and platform of mpm.

  1. Download the latest release of Simulink® and Deep Learning Toolbox™ Model for ResNet-50 Network. mpm also includes the required products in the download: MATLAB and Deep Learning Toolbox.

    Linux or macOS:

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

    Windows® (run as administrator):

    .\mpm.exe download --release R2024a --destination "C:\Users\<USER>\Downloads\MathWorks" --products Simulink Deep_Learning_Toolbox_Model_for_ResNet-50_Network

    mpm downloads the product files to the specified destination folder.

  2. (Optional) If you are installing these products on a different computer, make the destination folder available for installation on the target computer. Use one of these options:

    • 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 files. mpm also installs the required products: MATLAB and Deep Learning Toolbox.

    Linux or macOS:

    ./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

Input Arguments

collapse all

Release to download, specified as a MATLAB release name.

  • To download the latest update of a release, 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 a release without updates, specify the release name with an update 0 or general release suffix, for example R2024bU0, R2024bGR.

Example: --release R2024a

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.

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. For example:

--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.

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.

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 does not support downloading these products and support packages:

    ProductsSupport Packages
    • IEC Certification Kit

    • DO Qualification Kit

    • Simulink Code Inspector™

    • Polyspace® Client™ for Ada

    • Polyspace Server™ for Ada

    • 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™ QNX Target Support

    • To download the unsupported products, you can get all products by downloading an ISO image from MathWorks Downloads, or get a selection of products by following the process described in Download Products Without Installing. You can then install the products by using mpm install. Specify the product source using the --source option.

    • To download the unsupported support packages, use the Support Software Downloader. You can then install the support packages by following the instructions in the README included in the download. mpm does not support installing support packages downloaded using the Support Software Downloader.

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

Tips

  • You can specify options using either an equal sign (=) or a space between the option name and its parameter value. For example, --destination=/full/path/to/destination is equivalent to --destination /full/path/to/destination.