Development documentation

This is the in-progress lota-next branch. For the released version, see the stable documentation.

Signed dnf repository

https://lota.szymon-wilczek.me/rpm serves the nfpm packages of the newest release (RPM packages). The packages and the repository metadata are signed with the project's GPG key, and packaging/repo/lota.repo.in sets gpgcheck=1 and repo_gpgcheck=1, so dnf refuses a package or an index that key did not sign. COPR repository builds the same packages from the source RPM.

Installing

On Fedora:

sudo dnf config-manager addrepo \
    --from-repofile=https://lota.szymon-wilczek.me/rpm/lota.repo
sudo dnf install lota-agent

dnf offers to import RPM-GPG-KEY-lota from the repository on first use; sudo rpm --import https://lota.szymon-wilczek.me/rpm/RPM-GPG-KEY-lota imports it beforehand. Bring-up ends with sudo lota-install (Guided install (lota-install)).

Building the repository

make dnf-repo LOTA_RPM_GPG_NAME=KEY-ID

make dnf-repo signs the RPMs in build/packages (PKG_DIR) with rpmsign --addsign, copies them to build/dnf-repo (REPO_DIR), runs createrepo_c, signs repodata/repomd.xml into repomd.xml.asc, exports the public key as RPM-GPG-KEY-lota, and writes lota.repo with LOTA_REPO_BASEURL as baseurl and gpgkey. It refuses without LOTA_RPM_GPG_NAME and builds no packages: make packages comes first.

The release workflow publishes the tree as lota-dnf-repo-VERSION.tar.gz beside the RPMs, and the documentation deploy unpacks the newest release's tarball under /rpm.

Mirroring

The tarball is the whole repository. The signatures do not depend on the address, so a mirror serves the tree as it is and changes baseurl and gpgkey in lota.repo, or builds it with its own LOTA_REPO_BASEURL.