---
title: package-repository
description: Canonical makes open source secure, reliable and easy to use, providing
  support for Ubuntu and a portfolio of enterprise-grade technologies. Founded in
  2004, Canonical operates globally with team members in over 80 countries.
url: https://canonical-com-2934.demos.haus/maas/docs/package-repository?format=md
---

*Submit*

# package-repository

Enter keyword arguments in the form `key=value`.

## [Create a package repository](https://canonical-com-2934.demos.haus/maas/docs/package-repository?format=md#p-1597-create-a-package-repository)

```
maas $PROFILE package-repositories create [--help] [-d] [-k] [data ...]
```

Create a new package repository.

#### Keyword “name”

Required String. The name of the package repository.

#### Keyword “url”

Required String. The url of the package repository.

#### Keyword “distributions”

Optional String. Which package distributions to include.

#### Keyword “disabled\_pockets”

Optional String. The list of pockets to disable.

#### Keyword “disabled\_components”

Optional String. The list of components to disable. Only applicable to the default Ubuntu repositories.

#### Keyword “components”

Optional String. The list of components to enable. Only applicable to custom repositories.

#### Keyword “arches”

Optional String. The list of supported architectures.

#### Keyword “key”

Optional String. The authentication key to use with the repository.

#### Keyword “disable\_sources”

Optional Boolean. Disable deb-src lines.

#### Keyword “enabled”

Optional Boolean. Whether or not the repository is enabled.

#### Command-line options

| Option | Effect |
| --- | --- |
| –help, -h | Show this help message and exit. |
| -d, --debug | Display more information about API responses. |
| -k, --insecure | Disable SSL certificate check |

## [List package repositories](https://canonical-com-2934.demos.haus/maas/docs/package-repository?format=md#p-1597-list-package-repositories)

```
maas $PROFILE package-repositories read [--help] [-d] [-k] [data ...]
```

List all available package repositories.

#### Command-line options

| Option | Effect |
| --- | --- |
| –help, -h | Show this help message and exit. |
| -d, --debug | Display more information about API responses. |
| -k, --insecure | Disable SSL certificate check |

## [Delete a package repository](https://canonical-com-2934.demos.haus/maas/docs/package-repository?format=md#p-1597-delete-a-package-repository)

```
maas $PROFILE package-repository delete [--help] [-d] [-k] id [data ...]
```

#### Positional arguments

* id

Delete a package repository with the given id.

#### Command-line options

| Option | Effect |
| --- | --- |
| –help, -h | Show this help message and exit. |
| -d, --debug | Display more information about API responses. |
| -k, --insecure | Disable SSL certificate check |

## [Read a package repository](https://canonical-com-2934.demos.haus/maas/docs/package-repository?format=md#p-1597-read-a-package-repository)

```
maas $PROFILE package-repository read [--help] [-d] [-k] id [data ...]
```

#### Positional arguments

* id

Read a package repository with the given id.

#### Command-line options

| Option | Effect |
| --- | --- |
| –help, -h | Show this help message and exit. |
| -d, --debug | Display more information about API responses. |
| -k, --insecure | Disable SSL certificate check |

## [Update a package repository](https://canonical-com-2934.demos.haus/maas/docs/package-repository?format=md#p-1597-update-a-package-repository)

```
maas $PROFILE package-repository update [--help] [-d] [-k] id [data ...]
```

#### Positional arguments

* id

Update the package repository with the given id.

#### Keyword “name”

Optional String. The name of the package repository.

#### Keyword “url”

Optional String. The url of the package repository.

#### Keyword “distributions”

Optional String. Which package distributions to include.

#### Keyword “disabled\_pockets”

Optional String. The list of pockets to disable.

#### Keyword “disabled\_components”

Optional String. The list of components to disable. Only applicable to the default Ubuntu repositories.

#### Keyword “components”

Optional String. The list of components to enable. Only applicable to custom repositories.

#### Keyword “arches”

Optional String. The list of supported architectures.

#### Keyword “key”

Optional String. The authentication key to use with the repository.

#### Keyword “disable\_sources”

Optional Boolean. Disable deb-src lines.

#### Keyword “enabled”

Optional Boolean. Whether or not the repository is enabled.

#### Command-line options

| Option | Effect |
| --- | --- |
| –help, -h | Show this help message and exit. |
| -d, --debug | Display more information about API responses. |
| -k, --insecure | Disable SSL certificate check |

## [Delete a package repository](https://canonical-com-2934.demos.haus/maas/docs/package-repository?format=md#p-1597-delete-a-package-repository)

```
maas $PROFILE package-repository delete [--help] [-d] [-k] id [data ...]
```

#### Positional arguments

* id

Delete a package repository with the given id.

#### Command-line options

| Option | Effect |
| --- | --- |
| –help, -h | Show this help message and exit. |
| -d, --debug | Display more information about API responses. |
| -k, --insecure | Disable SSL certificate check |

---

[Previous

notification](https://canonical-com-2934.demos.haus/maas/docs/notification)
[Next

partition](https://canonical-com-2934.demos.haus/maas/docs/partition)

Last updated 1 year, 4 months ago. [Help improve this document in the forum](https://discourse.maas.io/t/package-repository/814).
