Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

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.

Simplify stable installation

1b1571bb64dc9bec50d6ec1bfbd15ad418927ba4 · Keenan Nemetz · 13d ago · parent fbdb3818

Simplify stable installation

Lead with the stable apt, dnf, and pacman repositories, use stable release URLs for manual downloads, and link the README to the deployed documentation. Keep signing and pinning details in the package reference. Make the packaged configuration readable by the vole service account so post-install initialization succeeds, with a deployment-check regression assertion.

docs/install.md +55−150

@@ -1,44 +1,35 @@
1 1 # Install
2 2
3 Install Vole on Linux from a package repository, a package file, a release
4 binary, or a source build. Each path ends with the same check: `vole version`
5 prints the installed version.
3 Install the current stable Vole release on Linux with your package manager.
4 Packages and standalone binaries are available for `amd64` and `arm64`.
6 5
7 6 | Method | Best for | Requirements |
8 7 |---|---|---|
9 | [Package repository](#install-from-the-package-repository) | Servers that should upgrade with `apt`, `dnf`, or `pacman` | A public channel and `sudo` access |
10 | [Package file](#install-a-package-file) | Debian, Ubuntu, Fedora, RHEL, Rocky, or Arch servers | `sudo` access |
11 | [Release binary](#install-a-release-binary) | Another Linux machine | Git and SQLite with FTS5 |
8 | [Package repository](#install-from-the-package-repository) | Most installations; upgrades through `apt`, `dnf`, or `pacman` | `sudo` access |
9 | [Package file](#install-a-package-file) | Installing without adding a repository | `sudo` access |
10 | [Release binary](#install-a-release-binary) | A user-local installation | Git and SQLite with FTS5 |
12 11 | [Build from source](#build-from-source) | Developing Vole or using an unsupported platform | Go, a C compiler, and Git |
13 12
14 Download packages and binaries from the
15 [Vole release page](https://rodent.software/vole/releases). Releases provide
16 `amd64` and `arm64` files, `SHA256SUMS`, a detached signature over that list,
17 and the release public key. The package repositories and the checksum list are
18 signed, so a modified download or a different package fails verification; see
19 [Verify a direct download](#verify-a-direct-download).
20
21 13 ## Install from the package repository
22 14
23 Every release publishes a Debian repository at `apt/`, an RPM repository at
24 `yum/`, and an Arch repository at `pacman/$arch/`, and signs all three. They are
25 served through a channel — a URL that follows one release and can move to the
26 next ([Releases § Channels](releases.md#channels)) — so a source line keeps
27 working when a new release is published. Follow the `stable` channel on Debian
28 or Ubuntu:
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.
18 [Package repositories](packaging.md#package-repositories) explains the signature
19 checks and how to verify the release key independently.
20
21 ### Debian or Ubuntu
29 22
30 23 ```sh
31 24 sudo install -d -m 0755 /etc/apt/keyrings
32 25 sudo curl -fsSL https://rodent.software/vole/channels/stable/vole-release-key.asc \
33 26 -o /etc/apt/keyrings/vole.asc
34 gpg --show-keys --with-fingerprint /etc/apt/keyrings/vole.asc
35 27 echo 'deb [signed-by=/etc/apt/keyrings/vole.asc] https://rodent.software/vole/channels/stable/apt ./' \
36 28 | sudo tee /etc/apt/sources.list.d/vole.list
37 sudo apt update
38 sudo apt install vole
29 sudo apt update && sudo apt install vole
39 30 ```
40 31
41 On Fedora, RHEL, or Rocky:
32 ### Fedora, RHEL, or Rocky
42 33
43 34 ```sh
44 35 sudo curl -fsSL https://rodent.software/vole/channels/stable/vole-release-key.asc \
@@ -56,7 +47,7 @@ EOF
56 47 sudo dnf install vole
57 48 ```
58 49
59 On Arch Linux, import the same key into pacman's keyring and add the repository:
50 ### Arch Linux
60 51
61 52 ```sh
62 53 curl -fsSLO https://rodent.software/vole/channels/stable/vole-release-key.asc
@@ -70,68 +61,11 @@ EOF
70 61 sudo pacman -Syu vole
71 62 ```
72 63
73 `$arch` expands to `x86_64` or `aarch64`. Run `sudo pacman-key --init` first if
74 this machine has never initialized its keyring.
75
76 `gpg --show-keys` prints the fingerprint before anything is trusted. Compare it
77 with the copy of the same key committed in the source repository at
78 `packaging/keys/vole-release.asc`: that file travels through Git rather than
79 through the package host, which is what makes the comparison meaningful. The
80 release also attaches the key as `vole-release-key.asc` and writes the
81 fingerprint to `vole-release-key.fingerprint`. The fingerprint passed to
82 `pacman-key --lsign-key` above is the same value.
83
84 The apt and yum repositories carry both architectures; pacman uses the `$arch`
85 URL above. Each client installs the package for its own architecture. Upgrades
86 arrive with the package manager:
87
88 ```sh
89 sudo apt update && sudo apt upgrade vole
90 sudo dnf upgrade vole
91 sudo pacman -Syu vole
92 ```
93
94 Apt verifies `InRelease` (or `Release` plus `Release.gpg`) and the hashes it
95 carries for every `.deb`. Dnf verifies `repomd.xml.asc` and, with `gpgcheck=1`,
96 each RPM's signature. Pacman verifies `vole.db` and `vole.files` and each
97 package's detached `.sig`. A missing or wrong signature fails the update or
98 install instead of accepting the package.
99
100 A mirror that does not carry the key can still serve the files. Trusting it is a
101 deliberate downgrade: use `[trusted=yes]` without `signed-by` for apt,
102 `gpgcheck=0`/`repo_gpgcheck=0` for dnf, and `SigLevel = Never` for pacman, with
103 the checksum and transport caveats [Verify a direct download](#verify-a-direct-download)
104 describes.
105
106 The repository must be readable by anonymous visitors. A private repository
107 answers package managers with `404`; mirror the packages or install from a file
108 instead.
109
110 A channel follows exactly one release, and a file attached to that release is
111 served at `/<repo>/channels/<channel>/<path>`. To pin a version instead of
112 following a channel, replace `/channels/stable` with the release path, for
113 example `https://rodent.software/vole/releases/v0.2.0/artifacts`; the source
114 then stays on that release until you change it. A pinned apt source therefore
115 ends in `/releases/v0.2.0/artifacts/apt`.
116
117 ## Install a package file
64 Run `sudo pacman-key --init` first if this machine has never initialized its
65 keyring. Pacman expands `$arch` to `x86_64` or `aarch64`; apt and dnf select the
66 architecture automatically.
118 67
119 Download the `.deb`, `.rpm`, or `.pkg.tar.zst` for your architecture,
120 `SHA256SUMS`, `SHA256SUMS.asc`, and `vole-release-key.asc`. Verify the download
121 with [Verify a direct download](#verify-a-direct-download), then install it:
122
123 ```sh
124 sudo dpkg -i vole_0.2.0-1_amd64.deb # Debian or Ubuntu
125 sudo dnf install ./vole-0.2.0-1.x86_64.rpm # Fedora, RHEL, or Rocky
126 sudo pacman -U vole-0.2.0-1-x86_64.pkg.tar.zst # Arch Linux
127 ```
128
129 Use the `arm64` package on an ARM machine; its RPM and Arch architecture is
130 `aarch64`. A prerelease such as `0.1.0-rc2` is `0.1.0rc2-1` in Arch, because
131 Arch's package version cannot carry a semver hyphen.
132
133 The package installs `vole`, systemd units, and `/etc/vole/vole.toml`. It also
134 installs Git and SQLite as dependencies.
68 Confirm the installation:
135 69
136 70 ```sh
137 71 vole version
@@ -141,97 +75,68 @@ vole version
141 75 0.2.0
142 76 ```
143 77
144 The package does not create an instance admin or start the forge. To configure a
145 server, continue with [Deploy a server](deploy/index.md). For the package's paths
146 and upgrade procedure, see [Packages and upgrades](packaging.md).
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.
82
83 ## Install a package file
147 84
148 ## Verify a direct download
85 Download one `.deb`, `.rpm`, or `.pkg.tar.zst` for your architecture from the
86 [current stable release](https://rodent.software/vole/channels/stable). To check
87 its signature and checksum before installing it, follow
88 [Verify a direct download](packaging.md#verify-a-direct-download).
149 89
150 Every release attaches `SHA256SUMS`, its detached signature `SHA256SUMS.asc`,
151 and `vole-release-key.asc`. Verify the signature before trusting the checksum
152 list, then check the files you downloaded:
90 From the download directory, run the command for your distribution:
153 91
154 92 ```sh
155 tag=v0.2.0
156 base=https://rodent.software/vole/releases/$tag/artifacts
157 curl -LO "$base/vole-release-key.asc"
158 curl -LO "$base/SHA256SUMS"
159 curl -LO "$base/SHA256SUMS.asc"
160 gpg --import vole-release-key.asc
161 gpg --verify SHA256SUMS.asc SHA256SUMS
162 sha256sum -c --ignore-missing SHA256SUMS
93 sudo apt install ./vole_*.deb # Debian or Ubuntu
94 sudo dnf install ./vole-*.rpm # Fedora, RHEL, or Rocky
95 sudo pacman -U ./vole-*.pkg.tar.zst # Arch Linux
163 96 ```
164 97
165 `gpg --verify` must print `Good signature`. Compare the key's fingerprint with
166 the copy committed at `packaging/keys/vole-release.asc` in the source
167 repository; the release path and the Git path are separate, so one compromised
168 host does not change both. `SHA256SUMS` covers every file attached to the
169 release, including the `apt/`, `yum/`, and pacman trees; `--ignore-missing`
170 checks the files you have and skips the rest.
171
172 HTTPS still authenticates the host that served the key. If that is not enough
173 for your threat model, clone the repository over SSH and compare the committed
174 key, or [build from source](#build-from-source).
98 Then confirm the installation with `vole version`.
175 99
176 100 ## Install a release binary
177 101
178 These commands install the `amd64` binary for version 0.2.0 in `~/.local/bin`:
102 Install Git and SQLite first: `libsqlite3-0` on Debian or Ubuntu, `sqlite-libs`
103 on Fedora, RHEL, or Rocky, or `sqlite` on Arch. SQLite must include FTS5.
104
105 These commands download the current stable `amd64` binary and install it in
106 `~/.local/bin`. To verify the binary before installing it, follow
107 [Verify a direct download](packaging.md#verify-a-direct-download).
179 108
180 109 ```sh
181 tag=v0.2.0
182 base=https://rodent.software/vole/releases/$tag/artifacts
183 curl -LO "$base/vole-linux-amd64"
184 curl -LO "$base/vole-release-key.asc"
185 curl -LO "$base/SHA256SUMS"
186 curl -LO "$base/SHA256SUMS.asc"
187 gpg --import vole-release-key.asc
188 gpg --verify SHA256SUMS.asc SHA256SUMS
189 sha256sum -c --ignore-missing SHA256SUMS
190 mkdir -p ~/.local/bin
191 install -m 0755 vole-linux-amd64 ~/.local/bin/vole
110 curl -fLO https://rodent.software/vole/channels/stable/vole-linux-amd64
111 install -D -m 0755 vole-linux-amd64 ~/.local/bin/vole
192 112 vole version
193 113 ```
194 114
195 See [Verify a direct download](#verify-a-direct-download) for the fingerprint
196 check and what the signature does and does not prove.
197
198 Replace `vole-linux-amd64` with `vole-linux-arm64` on an ARM machine. Make sure
115 On ARM, replace `vole-linux-amd64` with `vole-linux-arm64`. Make sure
199 116 `~/.local/bin` is on your `PATH`.
200 117
201 The binary needs Git and `libsqlite3.so.0` built with FTS5. Install
202 `libsqlite3-0` on Debian or Ubuntu, `sqlite-libs` on Fedora, RHEL, or Rocky, or
203 `sqlite` on Arch.
204
205 118 ## Build from source
206 119
207 Use this path when you want to change Vole. You need Git, a C compiler, and Go
208 with toolchain management. `go.mod` selects Go 1.27.4 and downloads that
209 toolchain when needed.
210
211 For a binary that matches the release build, also install the SQLite development
212 headers: `libsqlite3-dev` on Debian or Ubuntu, or `sqlite-devel` on Fedora or
213 RHEL. Then build from a checkout:
120 Use this path when you want to change Vole. You need Git, a C compiler, Go with
121 toolchain management, and SQLite development headers: `libsqlite3-dev` on Debian
122 or Ubuntu, or `sqlite-devel` on Fedora or RHEL. `go.mod` selects Go 1.27.4 and
123 downloads that toolchain when needed.
214 124
215 125 ```sh
216 git clone <repository-url>
126 git clone https://rodent.software/vole.git
217 127 cd vole
218 128 go build -tags libsqlite3,sqlite_fts5 -o vole ./cmd/vole
219 129 ./vole version
220 130 ```
221 131
222 132 The `libsqlite3` tag links the system SQLite library, and `sqlite_fts5` enables
223 full-text search. For a local build without SQLite development headers, omit
224 `libsqlite3`; the resulting binary uses the driver's bundled SQLite:
225
226 ```sh
227 go build -tags sqlite_fts5 -o vole ./cmd/vole
228 ```
229
230 SQLite requires cgo, so do not set `CGO_ENABLED=0`. See
231 the source repository's `DEVELOPMENT.md` for tests and a throwaway development
232 instance.
133 full-text search. See `DEVELOPMENT.md` in the source repository for local builds,
134 tests, and a throwaway development instance.
233 135
234 136 ## Next
235 137
236 [Quickstart](quickstart.md) takes an installed binary to a repository with a
237 first commit and an issue.
138 - [Quickstart](quickstart.md) — create a local repository, push a commit, and
139 open an issue.
140 - [Deploy a server](deploy/index.md) — configure a public forge and its first
141 admin.
142 - [Packages and upgrades](packaging.md#upgrading) — upgrade an installed server.