Main Content

matlab.mpm.Repository

Package repository

Since R2024b

    Description

    A MATLAB® package repository is a place where packages are stored and distributed. Packages that are ready for distribution can be added to a repository, and end users can install the package from the repository. MATLAB keeps a list of known repositories. When you search for a package using mpmsearch or install a package using mpminstall, the MATLAB Package Manager finds packages on the MATLAB search path and in known repositories. For additional information, see Distribute Packages Using Folder-Based Repositories.

    Creation

    There are several ways to create a matlab.mpm.Repository object:

    Properties

    expand all

    Repository location, specified as a string scalar containing the absolute or relative path to the repository.

    Example: "H:/SharedCode/CentralRepository"

    Repository name, specified as a string scalar. Name must be a valid MATLAB identifier.

    Example: "Central Repository"

    Object Functions

    mpmAddRepositoryAdd repository to repository list
    mpmListRepositoriesList known repositories
    mpmRemoveRepositoryRemove repository from repository list

    Version History

    Introduced in R2024b