Main Content

Get MATLAB Package Manager

Use MATLAB® Package Manager (mpm) to install MATLAB, Simulink®, and other MathWorks® products or support packages from the operating system command line. mpm also installs all required products and skips installation of products already installed.

Run mpm from a script to automate the installation of products on multiple computers. If you run mpm from the MATLAB Dockerfile, you can build a customized MATLAB Docker® container.

To download the latest version of mpm, follow the instructions for Linux®, Windows®, or macOS.

Linux

Verify that the following required software is installed on your computer:

  • Third-party packages required to run the mpm command, unzip and ca-certificates.

  • All MATLAB dependencies. To view the list of dependencies, go to the MATLAB Dependencies repository on GitHub®. Then, open the <release>/<system>/base-dependencies.txt file for your MATLAB release and your computer's operating system.

From a Linux terminal, use wget to download the latest version of mpm.

wget https://www.mathworks.com/mpm/glnxa64/mpm

Give executable permissions to the downloaded file so that you can run mpm.

chmod +x mpm

You can then use mpm install to install products. For example:

./mpm install --release R2024a --destination /home/<USER>/matlab --products MATLAB

Windows

From a Windows PowerShell prompt, use Invoke-WebRequest to download the latest version of mpm.

Invoke-WebRequest -Uri https://www.mathworks.com/mpm/win64/mpm -OutFile mpm.exe

Note

You must run mpm from the Windows PowerShell prompt as an administrator or you get an error during installation.

You can then use mpm install to install products. For example:

.\mpm.exe install --release R2024a --destination "C:\Users\<USER>\matlab" --products MATLAB

macOS

From a macOS terminal, use curl to download the latest version of mpm for your macOS architecture.

  • macOS (Intel® processor):

    curl -L -o ~/Downloads/mpm https://www.mathworks.com/mpm/maci64/mpm
    

  • macOS (Apple silicon):

    curl -L -o ~/Downloads/mpm https://www.mathworks.com/mpm/maca64/mpm
    

mpm is downloaded to your Downloads folder. Navigate to that folder.

cd ~/Downloads

Give executable permissions to the downloaded file so that you can run mpm.

chmod +x mpm

You can then use mpm install to install products. For example:

./mpm install --release R2024a --destination /home/<USER>/matlab --products MATLAB

See Also

| | | |

External Websites