vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Add a one-command install script for the stable channel
16a8be36308947758ae81c97500f9f891be18e52 · Keenan Nemetz · 13d ago · parent 1b1571bb
Add a one-command install script for the stable channel The signed package repositories still left a four- or five-command trust bootstrap on first install, because apt cannot fetch a key from a URL and pacman requires an explicit keyring signature. Ship packaging/install.sh as a release artifact served at channels/stable/install.sh: it detects the distribution, writes the key and repository, and hands the install to apt, dnf, or pacman. The script pins the release key's SHA-256 and fingerprint, and the release now publishes the committed key verbatim so the pin is exact. scripts/check-install.sh covers the three families without root or network, and the release attaches the script before SHA256SUMS so the checksum list covers it. closes: 01M7XG0ANWCC442YMFJSMW7HCC
docs/install.md +63−19
| @@ -5,16 +5,73 @@ Packages and standalone binaries are available for `amd64` and `arm64`. | |||
| 5 | 5 | ||
| 6 | 6 | | Method | Best for | Requirements | | |
| 7 | 7 | |---|---|---| | |
| 8 | | [Package repository](#install-from-the-package-repository) | Most installations; upgrades through `apt`, `dnf`, or `pacman` | `sudo` access | | ||
| 8 | | [Install script](#install-with-the-install-script) | Most installations; one command, then upgrades through the package manager | `curl` or `wget` and `sudo` | | ||
| 9 | | [Package repository by hand](#add-the-repository-by-hand) | Inspecting each change to the package manager | `sudo` access | | ||
| 9 | 10 | | [Package file](#install-a-package-file) | Installing without adding a repository | `sudo` access | | |
| 10 | 11 | | [Release binary](#install-a-release-binary) | A user-local installation | Git and SQLite with FTS5 | | |
| 11 | 12 | | [Build from source](#build-from-source) | Developing Vole or using an unsupported platform | Go, a C compiler, and Git | | |
| 12 | 13 | ||
| 13 | ## Install from the package repository | ||
| 14 | ## Install with the install script | ||
| 14 | 15 | ||
| 15 | Use the `stable` repository to install Vole now and upgrade it with your package | ||
| 16 | manager later. The commands below configure the package manager to verify Vole's | ||
| 17 | signed packages and repository metadata. | ||
| 16 | ```sh | ||
| 17 | curl -fsSL https://rodent.software/vole/channels/stable/install.sh | sudo sh | ||
| 18 | ``` | ||
| 19 | |||
| 20 | The script detects your distribution and architecture, installs the release key | ||
| 21 | and a package source, and runs the matching package manager. It writes ordinary | ||
| 22 | repository configuration, so later upgrades stay `apt upgrade`, `dnf upgrade`, or | ||
| 23 | `pacman -Syu`. | ||
| 24 | |||
| 25 | To read it before running it: | ||
| 26 | |||
| 27 | ```sh | ||
| 28 | curl -fsSLO https://rodent.software/vole/channels/stable/install.sh | ||
| 29 | less install.sh | ||
| 30 | sudo sh install.sh | ||
| 31 | ``` | ||
| 32 | |||
| 33 | The script pins the release key's SHA-256 and fingerprint and refuses a key that | ||
| 34 | does not match, so a host serving a different key cannot substitute one. It only | ||
| 35 | writes the key and repository files and hands the install to apt, dnf, or | ||
| 36 | pacman; package and repository signature checks stay with the package manager. | ||
| 37 | [Package repositories](packaging.md#package-repositories) describes the trust | ||
| 38 | model. | ||
| 39 | |||
| 40 | | Flag | Purpose | | ||
| 41 | |---|---| | ||
| 42 | | `--channel <name>` | Follow another release channel (default `stable`) | | ||
| 43 | | `--version <tag>` | Install one release, for example `--version v0.2.0` | | ||
| 44 | | `--repo-only` | Write the key and repository but do not install | | ||
| 45 | | `--dry-run` | Print the plan without changing anything | | ||
| 46 | | `--yes` | Accepted for callers that pass it | | ||
| 47 | | `--root <dir>` | Write configuration under a directory for an image build or a test; does not install | | ||
| 48 | | `--key <file>` | Use a local release key instead of downloading it | | ||
| 49 | |||
| 50 | The script supports Debian and Ubuntu, Fedora, RHEL, Rocky, and AlmaLinux, and | ||
| 51 | Arch Linux. On any other distribution it stops and points at the manual steps | ||
| 52 | below. On Arch it initializes the pacman keyring when one is missing; the manual | ||
| 53 | steps below assume it already exists. | ||
| 54 | |||
| 55 | Confirm the installation: | ||
| 56 | |||
| 57 | ```sh | ||
| 58 | vole version | ||
| 59 | ``` | ||
| 60 | |||
| 61 | ```text | ||
| 62 | 0.2.0 | ||
| 63 | ``` | ||
| 64 | |||
| 65 | The package installs Git and SQLite, the `vole` command, systemd units, and | ||
| 66 | `/etc/vole/vole.toml`. It does not create an instance admin or start the forge. | ||
| 67 | See [Packages and upgrades](packaging.md) for installed paths, upgrades, and | ||
| 68 | version pinning. | ||
| 69 | |||
| 70 | ## Add the repository by hand | ||
| 71 | |||
| 72 | Use these commands to make each change to your package manager yourself. They | ||
| 73 | configure the same key and repository as the install script and make the package | ||
| 74 | manager verify Vole's signed packages and repository metadata. | ||
| 18 | 75 | [Package repositories](packaging.md#package-repositories) explains the signature | |
| 19 | 76 | checks and how to verify the release key independently. | |
| 20 | 77 | ||
| @@ -65,20 +122,7 @@ Run `sudo pacman-key --init` first if this machine has never initialized its | |||
| 65 | 122 | keyring. Pacman expands `$arch` to `x86_64` or `aarch64`; apt and dnf select the | |
| 66 | 123 | architecture automatically. | |
| 67 | 124 | ||
| 68 | Confirm the installation: | ||
| 69 | |||
| 70 | ```sh | ||
| 71 | vole version | ||
| 72 | ``` | ||
| 73 | |||
| 74 | ```text | ||
| 75 | 0.2.0 | ||
| 76 | ``` | ||
| 77 | |||
| 78 | The package installs Git and SQLite, the `vole` command, systemd units, and | ||
| 79 | `/etc/vole/vole.toml`. It does not create an instance admin or start the forge. | ||
| 80 | See [Packages and upgrades](packaging.md) for installed paths, upgrades, and | ||
| 81 | version pinning. | ||
| 125 | Then confirm the installation with `vole version`. | ||
| 82 | 126 | ||
| 83 | 127 | ## Install a package file | |
| 84 | 128 | ||