repo

manage an apt source

The check fails when the source file or the key file on the host is larger than 1 MiB.

Keys

KeyTypeDefaultMeaning
namestringrequiredfile name in /etc/apt
urlstringrequiredwithout a user or a password
suitestringrequiredsuch as trixie
componentsstring or list of strings-such as main
keystring-key file in the recipe's files/
key_contentstring-key text, in place of key

repo.name

string, required

File name in /etc/apt, of the source file and of the key file.

repo.url

string, required

Without a user or a password.

repo.suite

string, required

Such as trixie. A flat suite ends in /.

repo.components

string or list of strings

Such as main. They are required, except for a flat suite, which has none.

repo.key

string

Key file in the recipe's files/ directory: an ASCII-armored OpenPGP public key. Download the vendor's key once and keep it in the project. A step has at most one of key and key_content.

repo.key_content

string

Key text, in place of key: an ASCII-armored OpenPGP public key. A step has at most one of key and key_content.

Example

- repo:
    name: nginx
    url: https://nginx.org/packages/debian
    suite: trixie
    components: [nginx]
    key: key.asc