REPOD.CONF(5) repod REPOD.CONF(5)

$XDG_CONFIG_HOME/repod/repod.conf

$XDG_CONFIG_HOME/repod/repod.conf.d/

/etc/repod.conf

/etc/repod.conf.d/

A TOML [1] based configuration file, which can be provided in a default configuration file location and/ or override configuration file locations. Override configuration files are read and merged in alphabetically order and have higher precedence than the default configuration file location.

Configuration files provided in the system-wide locations (i.e. /etc/repod.conf and /etc/repod.conf.d/) are only used for system-wide use of repod, while configurations provided in per-user locations (i.e. $XDG_CONFIG_HOME/repod/repod.conf and $XDG_CONFIG_HOME/repod/repod.conf.d/) are only used for per-user use of repod.

If no configuration file is provided, defaults are assumed (see DEFAULTS).

Global options provide the defaults for any repository that does not define them. For any undefined option defaults are assumed (see DEFAULT OPTIONS).

architecture =

A string setting the CPU architecture used for any repository, which does not define it. Understood values are

"aarch64", "any", "arm", "armv6h", "armv7h", "i486", "i686", "pentium4", "riscv32", "riscv64", "x86_64", "x86_64_v2", "x86_64_v3", "x86_64_v4"

archiving =

An optional table or boolean value, which defines the archiving options used for any repository, that do not define them explicitly. When unset or set to true, default archiving options are created. If set to false, archiving is disabled by default, but may still be set per repository. When defined as a table, the option has to define the following key-value pairs:

The name of the package archive directory (see DEFAULT DIRECTORIES for default values), below which directory structures and files for package and signature file archiving are created. This directory must be absolute.
The name of the source archive directory (see DEFAULT DIRECTORIES for default values), below which directory structures and files for source tarball archiving are created. This directory must be absolute.

build_requirements_exist =

An optional boolean value, which defines whether the build requirements of added packages must exist in the archive (if configured), any of the stability layers of the target repository or the set of packages being added. When unset, the value will be set to the default (see DEFAULT OPTIONS). When set to false, the build requirements of added packages are not checked, when set to true, they are checked. This setting may still be overriden per repository.

database_compression =

A string setting the database compression used for any repository, which does not define it. Understood values are

"", "bz2", "gz", "xz", "zst"

A table providing configuration for the management repository for any repository, which does not define one explicitly. As each configured binary package repository is represented as a subdirectory structure in the management repository, several repositories can share the same management_repo.

The name of the management repository in the management repository base directory (see DEFAULT DIRECTORIES), below which per binary package repository directories are created. If the string denotes an absolute directory it is used directly and the default base directory is disregarded.
An integer, defining the option for orjson's dumps() [2] method. Defaults to:
1057

url =

An optional url string, for the upstream repository of the management repository (currently not used)

package_pool =

A string setting a directory that serves as the package pool for any repository, which does not define it.

An optional string setting the implementation of the package signature verification for all repositories. If a signature verification implementation is selected, packages that are added to the repository must be signed. Understood values are

"pacman-key"

source_pool =

A string setting a directory that serves as the source tarball pool for any repository, which does not define it.

Sync database settings offer control over the way data for repository sync databases is exported. The below key-value pairs are configured below a global syncdb_settings table. For any undefined option defaults are assumed (see DEFAULT OPTIONS).

An integer setting the desc version used when exporting the management repository to a repository sync database. Understood values are

1, 2

An integer setting the files version used when exporting the management repository to a repository sync database. Understood values are

1

Repository options are used to configure a specific repository. If optional options are not defined, global options (see GLOBAL OPTIONS) or defaults (see DEFAULT OPTIONS) are assumed.

NOTE: The resolved directories for repositories must be globally unique. The only exceptions to this rule are package_pool, source_pool, archiving.packages and archiving.sources.

architecture =

An optional string setting the CPU architecture. Understood values are

"aarch64", "any", "arm", "armv6h", "armv7h", "i486", "i686", "pentium4", "riscv32", "riscv64", "x86_64", "x86_64_v2", "x86_64_v3", "x86_64_v4"

archiving =

An optional inline table or boolean value, which defines the archiving options. When unset or set to true, the global archiving options are used. If set to false, archiving is disabled.

NOTE: When repositories are used together, they should be using the same archiving options.

When defined as an inline table, the option has to define the following key-value pairs:

The name of the package archive directory (see DEFAULT DIRECTORIES for default values), below which directory structures and files for package and signature file archiving are created. This directory must be absolute.
The name of the source archive directory (see DEFAULT DIRECTORIES for default values), below which directory structures and files for source tarball archiving are created. This directory must be absolute.

build_requirements_exist =

An optional boolean value, which defines whether the build requirements of added packages must exist in the archive (if configured), any of the stability layers of the target repository or the set of packages being added. When unset, the value will be set to the value defined globally. When set to false, the build requirements of added packages are not checked, when set to true, they are checked.

database_compression =

An optional string setting the database compression used for the repository. Understood values are

"", "bz2", "gz", "xz", "zst"

An optional positive integer, which defines the group a repository belongs to.

NOTE: When repositories are grouped together, the pkgbase and package names must be unique amongst them (i.e. the same package can not exist in two repositories at the same time - this is different from the same package existing in different stability layers of the same repository!). Furthermore, the repositories must use the same management repository (which resides below the management repository base directory), the same package repository base directory, the same package pool base directory and the same source pool base directory!

An optional inline table providing configuration for the management repository of the repository. If it is provided, it has precedence over a globally defined management_repo. As each configured repository is represented as a subdirectory structure in the management repository, several repositories can share the same management_repo.

The name of the management repository in the management repository base directory (see DEFAULT DIRECTORIES), below which per binary package repository directories are created. If the string denotes an absolute directory it is used directly and the default base directory is disregarded.
An integer, defining the option for orjson's dumps() method (see https://github.com/ijl/orjson#option). Defaults to:
1057

url =

An optional url string, for the upstream repository of the management repository (currently not used)

An optional inline table providing configuration for the validation of source URLs. Source URLs are links, that may be provided per pkgbase using repod-file and serve as reference to the source files (e.g. PKGBUILD) for each package.

A list of URL strings, against which the source URLs provided to repod-file must validate.
A boolean value, setting whether the URLS in the urls list and any source URL provided to repod-file must use TLS or not.

A string setting the name of the repository. It is used to construct the location below which stable package data of the repository is stored.

NOTE: The name and architecture combination must be unique among all repositories.

If the string denotes a relative directory it is used below the default package repository base directory and management repository base directory (see DEFAULT DIRECTORIES).

If the string denotes an absolute directory it is used directly and the default base directories are disregarded.

An optional string setting the debug name of the repository. It is used to construct the location below which stable debug package data of the repository is stored.

NOTE: When using this option and also using the staging or testing options, the staging_debug and testing_debug options (respectively) must be set as well.

If the string denotes a relative directory it is used below the default package repository base directory and management repository base directory (see DEFAULT DIRECTORIES).

If the string denotes an absolute directory it is used directly and the default base directories are disregarded.

package_pool =

An optional string setting a directory that serves as the package pool for the repository.

NOTE: If repositories move packages amongst one another, they need to use the same package_pool.

If the string denotes a relative directory it is used below the default package pool base directory (see DEFAULT DIRECTORIES).

If the string denotes an absolute directory it is used directly and the default base directories are disregarded.

source_pool =

An optional string setting a directory that serves as the source tarball pool for the repository.

NOTE: If repositories move packages amongst one another, they need to use the same source_pool.

If the string denotes a relative directory it is used below the default source pool base directory (see DEFAULT DIRECTORIES).

If the string denotes an absolute directory it is used directly and the default base directories are disregarded.

An optional string setting the staging name of the repository. It is used to construct the location below which staging package data of the repository is stored.

If the string denotes a relative directory it is used below the default package repository base directory and management repository base directory (see DEFAULT DIRECTORIES).

If the string denotes an absolute directory it is used directly and the default base directories are disregarded.

An optional string setting the staging debug name of the repository. It is used to construct the location below which staging debug package data of the repository is stored.

NOTE: The staging and debug option must be set when using this option. Similarly, if debug and staging are configured for a repository, this option also has to be configured.

If the string denotes a relative directory it is used below the default package repository base directory and management repository base directory (see DEFAULT DIRECTORIES).

If the string denotes an absolute directory it is used directly and the default base directories are disregarded.

An optional string setting the testing name of the repository. It is used to construct the location below which testing package data of the repository is stored.

If the string denotes a relative directory it is used below the default package repository base directory and management repository base directory (see DEFAULT DIRECTORIES).

If the string denotes an absolute directory it is used directly and the default base directories are disregarded.

An optional string setting the testing debug name of the repository. It is used to construct the location below which testing debug package data of the repository is stored.

NOTE: The testing and debug option must be set when using this option. Similarly, if debug and testing are configured for a repository, this option also has to be configured.

If the string denotes a relative directory it is used below the default package repository base directory and management repository base directory (see DEFAULT DIRECTORIES).

If the string denotes an absolute directory it is used directly and the default base directories are disregarded.

If no configuration is provided, a repository named "default", with management repository, but without staging or testing repository, using default directories and default options is created automatically. This roughly evaluates to the following configuration:

architecture = "any"
archiving = true
database_compression = "gz"
[syncdb_settings]
desc_version = 1
files_version = 1
[management_repo]
directory = "default"
[[repositories]]
name = "default"

  • $XDG_STATE_HOME/repod/management/ The default per-user location below which management repository directories are created (aka management repository base directory).
  • /var/lib/repod/management/ The default system-wide location below which management repository directories are created (aka management repository base directory).
  • $XDG_STATE_HOME/repod/archive/package/ The default per-user location below which directory structures and files for package and signature file archiving are created (aka package archive directory).
  • /var/lib/repod/archive/package/ The default system-wide location below which directory structures and files for package and signature file archiving are created (aka package archive directory).
  • $XDG_STATE_HOME/repod/archive/source/ The default per-user location below which directory structures and files for source tarball archiving are created (aka source archive directory).
  • /var/lib/repod/archive/source/ The default system-wide location below which directory structures and files for source tarball archiving are created (aka source archive directory).
  • $XDG_STATE_HOME/repod/data/pool/package/ The default per-user location below which package pool directories are created (aka package pool base directory).
  • /var/lib/repod/data/pool/package/ The default system-wide location below which package pool directories are created (aka package pool base directory).
  • $XDG_STATE_HOME/repod/data/repo/package/ The default per-user location below which package repository directories are created (aka package repository base directory).
  • /var/lib/repod/data/repo/package/ The default system-wide location below which package repository directories are created (aka package repository base directory).
  • $XDG_STATE_HOME/repod/data/pool/source/ The default per-user location below which source pool directories are created (aka source pool base directory).
  • /var/lib/repod/data/pool/source/ The default system-wide location below which source pool directories are created (aka source pool base directory).
  • $XDG_STATE_HOME/repod/data/repo/source/ The default per-user location below which source repository directories are created (aka source repository base directory).
  • /var/lib/repod/data/repo/source/ The default system-wide location below which source repository directories are created (aka source repository base directory).

The default CPU architecture if neither global nor per-repository architecture is defined:
"any"
The default value for checking build requirements of added packages, if build_requirements_exist not defined globally:
true
The default database compression if neither global nor per-repository database_compression is defined:
"gz"
The default repository name if no repository is defined:
"default"
The default desc_version for sync databases if none is defined:
1
The default files_version for sync databases if none is defined:
1

[[repositories]]
architecture = "x86_64"
name = "repo"
staging = "repo-staging"
testing = "repo-testing"

[[repositories]]
architecture = "x86_64"
name = "repo1"
debug  = "repo1-debug"
staging = "repo1-staging"
staging_debug = "repo1-staging-debug"
testing = "repo1-testing"
testing_debug = "repo1-testing-debug"
[[repositories]]
architecture = "x86_64"
name = "repo2"
debug = "repo2-debug"
staging = "repo2-staging"
staging_debug = "repo2-staging-debug"
testing = "repo2-testing"
testing_debug = "repo2-testing-debug"

[[repositories]]
architecture = "x86_64"
name = "repo1"
staging = "repo-staging"
testing = "repo-testing"
management_repo = {directory = "custom_management", url = "ssh://user@custom-upstream.tld/repository.git"}

[[repositories]]
architecture = "x86_64"
name = "/absolute/path/to/repo1"
staging = "/absolute/path/to/repo-staging"
testing = "/absolute/path/to/repo-testing"
management_repo = {directory = "/absolute/path/to/management_repo"}

package_verification = "pacman-key"
[[repositories]]
architecture = "x86_64"
name = "repo1"
debug = "repo-debug"
staging = "repo-staging"
testing = "repo-testing"

[[repositories]]
architecture = "x86_64"
name = "repo1"
debug = "repo-debug"
staging = "repo-staging"
testing = "repo-testing"
package_url_validation = {urls = ["https://custom.tld"], tls_required = true}

[[repositories]]
architecture = "x86_64"
archiving = false
name = "repo1"

[[repositories]]
architecture = "x86_64"
build_requirements_exist = false
name = "repo1"

[[repositories]]
architecture = "x86_64"
build_requirements_exist = false
name = "repo1"
group = 1
[[repositories]]
architecture = "x86_64"
build_requirements_exist = false
name = "repo2"
group = 1

repod-file(1), PKGBUILD(5), pacman(8), pacman-key(8)

1.
TOML specification

https://toml.io/en/v1.0.0

2.
Orjson options

https://github.com/ijl/orjson#option)

David Runge

2023, David Runge

July 17, 2023