5.35 Machine Repository Configuration

A machine fetches from the repositories its configuration names.

5.35.1 Files #

Each repository is a file of its own, /conf/ppk/repositories/<name>.toml, where <name> follows §5.9:

path = "/mnt/peios-repo"
identity = "pkgs.peios.org"
track = "stable"

A repository served over HTTP (§5.34) is given by its base URLs, tried in order:

urls = ["http://cache.lan/peios/", "https://pkgs.peios.org/"]
identity = "pkgs.peios.org"
track = "stable"
KeyHolds
pathWhere the repository is, as a directory
urlsThe base URLs the repository is served at, at least one, tried in order (§5.34)
identityThe name its pointer file is signed under (§5.33); with it, the signature is checked
unrootedtrue to accept an Unrooted chain as well as a Rooted one; false by default
anchorThe object hash of the top-level its chain has to end at, in lowercase hexadecimal
trackThe index or channel a request for a bare name follows

A file MUST have exactly one of path and urls. unrooted and anchor are given only with identity. A consumer MUST refuse any other key. /conf merges what the system ships, under /usr/conf, with the machine's own, under /lcl/conf: a consumer reads /conf/ppk and writes what the machine adds under /lcl/conf/ppk.

5.35.2 Tracking #

A request for a package by a bare name or a constraint, naming no index and not one exact version, follows the index or channel its repository tracks, if it tracks one. The closure's inventory records the index (§5.25), so its meaning doesn't depend on the configuration that chose it.

5.35.3 State #

What the machine has seen of each repository is state, not configuration: a consumer keeps the highest sequence it has seen of each in /var/state/ppk/sequences/<name>, as a decimal number and a newline (§5.34).

Edit this page