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.
Before installing products, always get the latest version of mpm
.
Follow the instructions for your platform.
Linux
Verify that the following required software is installed on your computer:
Third-party packages required to run the
mpm
command,unzip
andca-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
Windows
Open Windows® PowerShell as an administrator, and use
Invoke-WebRequest
to download the latest version of
mpm
.
Note
You must run mpm
as an administrator on Windows or you get an error when installing products.
From the 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
Mac
From a Mac terminal, use curl
to download the latest version of
mpm
for your Mac architecture.
Mac Apple silicon:
curl -L -o ~/Downloads/mpm https://www.mathworks.com/mpm/maca64/mpm
Mac Intel®:
curl -L -o ~/Downloads/mpm https://www.mathworks.com/mpm/maci64/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
Use MATLAB Package Manager
For information on using mpm
, see these command reference
pages:
Command | Description |
---|---|
mpm install | Install products and support packages |
mpm download | Download products and support packages |
mpm install-doc | Install documentation |
mpm --help | Get help using MATLAB Package Manager |
mpm --version | Get MATLAB Package Manager version information |