Main Content

Package Management

Share code that has dependencies on other libraries
Since R2024b

A package is a collection of MATLAB® code, related files, and a package definition file. The MATLAB Package Manager ensures that when your end users install your library, the correct versions of all required dependent libraries are also installed. To distribute a package to end users, add it to a package repository. For more information, see Organize and Distribute Code Using MATLAB Package Manager.

If you instead want to install MATLAB, Simulink®, and other MathWorks® products or support packages, see Install Programmatically Using MATLAB Package Manager.

Functions

expand all

mpmcreateCreate package
mpminstallInstall package
mpmuninstallUninstall package
mpmsearchSearch for packages in repositories
mpmlistList installed packages
mpmAddRepositoryAdd repository to repository list
mpmListRepositoriesList known repositories
mpmRemoveRepositoryRemove repository from repository list
addFolderAdd member folder to package
removeFolderRemove member folder from package
addDependencyAdd dependency to package
removeDependencyRemove dependency from package
updateDependencyUpdate dependency information
digestGenerate cryptographic hash for package

Objects

expand all

matlab.mpm.PackageMATLAB package
matlab.mpm.DependencyPackage dependency
matlab.mpm.PackageSpecifierPackage specifier
matlab.mpm.VersionPackage version
matlab.mpm.RepositoryPackage repository
matlab.mpm.ProviderPackage provider
matlab.mpm.PackageFolderPackage member folder

Topics