From 429a775fc6bc63f12eb5247c2a6a2ace94cb08f2 Mon Sep 17 00:00:00 2001 From: ShortArrow Date: Wed, 21 Oct 2026 14:20:08 +0900 Subject: [PATCH] docs: record apt against the live repository and add the install steps --- README.md | 21 +++++++++++++++++++-- docs/adr/0001-package-registry.md | 14 ++++++++++++-- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 862a2bc..0e8f46b 100644 --- a/README.md +++ b/README.md @@ -13,5 +13,22 @@ Each project builds its packages and attaches them to its own GitHub Release. This repository holds the signed indexes that point at those assets, the repository keys, and the Cloudflare Worker that serves them. -Nothing is published yet. The design is in -[ADR 0001](docs/adr/0001-package-registry.md). +## Installing + +On Debian or Ubuntu, amd64 or arm64: + +```sh +sudo curl -fsSL https://pkg.shortarrow.jp/apt/shortarrow-archive-keyring.gpg \ + -o /usr/share/keyrings/shortarrow-archive-keyring.gpg +echo "deb [signed-by=/usr/share/keyrings/shortarrow-archive-keyring.gpg] https://pkg.shortarrow.jp/apt stable main" \ + | sudo tee /etc/apt/sources.list.d/shortarrow.list +sudo apt update +sudo apt install shortarrow-archive-keyring runex +``` + +Replace `runex` with any package in the table. Installing +`shortarrow-archive-keyring` by name keeps the keyring, and the keys it +holds up to date, after the tool is removed. + +The design is in [ADR 0001](docs/adr/0001-package-registry.md), and how +to run the registry in [docs/operations.md](docs/operations.md). diff --git a/docs/adr/0001-package-registry.md b/docs/adr/0001-package-registry.md index 8ee6006..40d1750 100644 --- a/docs/adr/0001-package-registry.md +++ b/docs/adr/0001-package-registry.md @@ -391,5 +391,15 @@ Also on 2026-10-20, on `https://pkg.shortarrow.jp`, between 04:01 and - Redeploying `public/` from `main` answered 404 for `apt/InRelease` and the pool redirect again. -Not yet verified: `apt` itself against `https://pkg.shortarrow.jp`. It -is checked there before the first publish. +On 2026-10-21, after the first rebuild, deployed from `main` at 016eab2 +as Worker version 10bcc496, against `https://pkg.shortarrow.jp/apt`: + +- In `debian:bookworm` and `ubuntu:24.04` containers on amd64 and arm64 + GitHub runners, the install guide's steps downloaded the keyring, + `apt update` verified `InRelease` against it, and + `shortarrow-archive-keyring` 2026.10.21.1 installed by name. +- In `debian:bookworm` and `ubuntu:24.04` containers on amd64, `apt` + installed `runex` 0.1.21-1 and `gitreant` 0.3.0-1 by name through the + `pool/` redirect to their release assets, and `gitreant --version` + printed `gitreant 0.3.0`. Asking for `runex` 0.1.99-1, which the index + does not hold, failed.