Main Content

Update MathWorks Software on Offline Computer

Note

Use this procedure only for R2018b and later. This process can be followed by license administrators only.

The optimal experience for installing an update is from within MATLAB® on a computer connected to the Internet. When that is not possible, however, license administrators can perform an update to an existing MATLAB installation on any computer by downloading the update package.

  • Each update contains all the fixes from previous updates.

  • Update packages require an unzip utility that supports ZIP64.

  • Offline installations use a noninteractive command-line process.

  • You must have write privileges to matlabroot (where MATLAB is installed) to run the command in this process.

  • You must be a license administrator to access the update links on mathworks.com.

Download the update package to an online computer, and then install the package on the user's computer.

  1. Go to Downloads on the MathWorks® website.

  2. From the I WANT TO: menu, select Get Updates.

  3. Under Get Updates for MATLAB and Simulink Products, click Get Update Package for Offline Installation.

  4. Under Select Release, choose the release you want to download. If you don't see the release you want, click Show More.

  5. If you are downloading the update package for a Windows® operating system, click Download for Windows.

    If you are downloading the update package for a macOS or Linux® operating system, click the down arrow on the button to select the appropriate version.

  6. Follow the instructions to download the update package to the user's computer or to a network share location.

  7. Unzip the update package to a new folder, For example, C:\temp\R2022a_Update1_Package. Make sure the folder is accessible to the user's computer.

  8. On the user's computer, close all instances of MATLAB.

  9. Install the update according to the instructions for your operating system. In the command for each platform, argument package_folder is the full path to the directory where you unzipped the update package.

    • Windows Systems

      1. Go to a command prompt.

      2. Change folder to:

        matlabroot\bin\win64

        matlabroot is the path to the MATLAB installation.

      3. Run update_installer.exe with the following command-line arguments:

        update_installer.exe -updatepackage package_folder
    • Linux

      1. Open a terminal.

      2. Change folder to:

        matlabroot/bin/glnxa64

        matlabroot is the path to the MATLAB installation.

      3. Run update_installer with the following command-line arguments:

        ./update_installer.sh -updatepackage package_folder

        If you plan to run the update_installer using the root account, see this MATLAB Answer: Why can't I install MATLAB with the root account in Linux?

    • macOS

      1. Open a terminal.

      2. Change folder to:

        matlabroot/bin/maci64

        matlabroot is the path to the MATLAB installation.

      3. Run update_installer with the following command-line arguments:

        ./update_installer -updatepackage package_folder

Installation status is not displayed in the terminal or at the command prompt. Instead, you can find all status messages in the log at \%TEMP%\mathworks_yourusername.log (Windows) or /tmp/mathworks_yourusername.log (Linux or macOS). Examine the log carefully for errors.

Related Topics