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.

Rewrite documentation around reader tasks

d1f44d838966c0a4762073f12375ec7562582fdf · Keenan Nemetz · 21h ago · parent 9103f6a8

docs/install.md +273−158

@@ -1,85 +1,213 @@
1 1 # Install
2 2
3 Install the current stable Vole release on Linux with your package manager, on
4 macOS from a standalone binary, or on Windows from an MSI. Packages and binaries
5 are available for `amd64` and `arm64`; Windows is `amd64` only.
3 Install Vole with your package manager where possible, or download a standalone
4 binary. After installing, `vole version` confirms that the command is ready.
6 5
7 | Method | Best for | Requirements |
6 | Your platform or goal | Start with | Other options |
8 7 |---|---|---|
9 | [Install script](#install-with-the-install-script) | Most installations; one command, then upgrades through the package manager | `curl` or `wget` and `sudo` |
10 | [Package repository by hand](#add-the-repository-by-hand) | Inspecting each change to the package manager | `sudo` access |
11 | [Package file](#install-a-package-file) | Installing without adding a repository | `sudo` access |
12 | [Release binary](#install-a-release-binary) | A user-local installation on Linux | Git |
13 | [Install on macOS](#install-on-macos) | A Mac client, or a laptop forge | `curl` or `wget`, and `sudo` for a system install |
14 | [Install on Windows](#install-on-windows) | A Windows server, or a Windows client | PowerShell as administrator |
15 | [Build from source](#build-from-source) | Developing Vole or using an unsupported platform | Go and Git |
8 | Debian, Ubuntu, Fedora, RHEL, Rocky, AlmaLinux, or Arch Linux | [Install script](#install-with-the-script) | [Package repository](#add-the-repository-by-hand), [package file](#install-a-package-file), or [binary](#install-a-release-binary) |
9 | Another Linux distribution | [Standalone binary](#install-a-release-binary) | [Build from source](#build-from-source) |
10 | macOS | [Homebrew](#install-with-homebrew) for a service, or the [install script](#use-the-install-script) for your account | Build from source |
11 | Windows | [PowerShell installer](#install-on-windows) | Download the MSI directly |
12 | Develop Vole | [Build from source](#build-from-source) | — |
16 13
17 ## Install with the install script
14 Releases provide Linux and macOS binaries for `amd64` and `arm64`. Windows
15 releases are `amd64` only. The same `vole` command provides the CLI and forge
16 server; the Windows package does not include the CI runner.
17
18 ## Install on Linux
19
20 ### Install with the script
21
22 On Debian, Ubuntu, Fedora, RHEL, Rocky, AlmaLinux, and Arch Linux, run:
18 23
19 24 ```sh
20 25 curl -fsSL https://rodent.software/vole/channels/stable/install.sh | sudo sh
21 26 ```
22 27
23 28 The script detects your distribution and architecture, installs the release key
24 and a package source, and runs the matching package manager. It writes ordinary
25 repository configuration, so later upgrades stay `apt upgrade`, `dnf upgrade`, or
26 `pacman -Syu`. On macOS there is no package manager to hand the install to, so it
27 installs the release binary itself; see [Install on macOS](#install-on-macos).
29 and package repository, and installs Vole with `apt`, `dnf`, or `pacman`. Your
30 package manager verifies the signed repository and packages and handles later
31 upgrades. The script also checks the release key's pinned SHA-256 and fingerprint
32 before changing the system.
33
34 Confirm the installation:
35
36 ```sh
37 vole version
38 ```
39
40 For the current stable release, the output is:
41
42 ```text
43 0.2.0
44 ```
28 45
29 To read it before running it:
46 The Linux package installs Git, the `vole` command, systemd units, and
47 `/etc/vole/vole.toml`. It does not create an instance administrator or enable
48 the forge service. Continue with the [Quickstart](quickstart.md) for a local
49 instance, or [Deploy on Linux](deploy/linux.md) to configure the service.
50
51 To inspect the script and preview its changes before installing:
30 52
31 53 ```sh
32 54 curl -fsSLO https://rodent.software/vole/channels/stable/install.sh
33 55 less install.sh
56 sh install.sh --dry-run
34 57 sudo sh install.sh
35 58 ```
36 59
37 The script pins the release key's SHA-256 and fingerprint and refuses a key that
38 does not match, so a host serving a different key cannot substitute one. It only
39 writes the key and repository files and hands the install to apt, dnf, or
40 pacman; package and repository signature checks stay with the package manager.
41 [Package repositories](packaging.md#package-repositories) describes the trust
42 model.
43
44 | Flag | Purpose |
45 |---|---|
46 | `--channel <name>` | Follow another release channel (default `stable`) |
47 | `--version <tag>` | Install one release, for example `--version v0.2.0` |
48 | `--repo-only` | Write the key and repository but do not install |
49 | `--dry-run` | Print the plan without changing anything |
50 | `--yes` | Accepted for callers that pass it |
51 | `--root <dir>` | Write configuration under a directory for an image build or a test; does not install |
52 | `--key <file>` | Use a local release key instead of downloading it |
53
54 The script supports Debian and Ubuntu, Fedora, RHEL, Rocky, and AlmaLinux, and
55 Arch Linux. On any other distribution it stops and points at the manual steps
56 below. On Arch it initializes the pacman keyring when one is missing; the manual
57 steps below assume it already exists.
60 Run `sh install.sh --help` for channel, version-pinning, repository-only, and
61 image-build options.
58 62
59 Confirm the installation:
63 ## Install on macOS
64
65 Use Homebrew when you want Homebrew to manage Vole and its LaunchAgent. Use the
66 install script when you want only the command in your account. Both methods
67 support Apple Silicon and Intel Macs running macOS 13 or later.
68
69 ### Install with Homebrew
70
71 The tap is hosted on the Rodent Software forge, so give Homebrew its clone URL:
60 72
61 73 ```sh
74 brew tap rodent-software/homebrew-tap https://rodent.software/homebrew-tap.git
75 brew install vole
62 76 vole version
63 77 ```
64 78
65 ```text
66 0.2.0
79 The formula can manage Vole as a LaunchAgent with `brew services start vole`.
80 [Deploy on macOS](deploy/macos.md) explains the service, its data directories,
81 and machine-wide deployment.
82
83 ### Use the install script
84
85 ```sh
86 curl -fsSL https://rodent.software/vole/channels/stable/install.sh | sh
87 vole version
88 ```
89
90 The script selects the right binary, checks it against the release's
91 `SHA256SUMS`, and installs it as `~/.local/bin/vole`. Make sure `~/.local/bin` is
92 on your `PATH`. Run the script with `sudo sh` instead to install
93 `/usr/local/bin/vole` for the machine. If Homebrew already manages Vole, the
94 script leaves that installation alone and tells you to use `brew upgrade vole`.
95
96 Vole needs Git at run time. If `git --version` opens a dialog offering to install
97 the command line tools, run `xcode-select --install` and finish that installation
98 first.
99
100 Continue with the [Quickstart](quickstart.md) for a local instance, or
101 [Deploy on macOS](deploy/macos.md) to run the forge as a service.
102
103 ## Install on Windows
104
105 You need Windows Server 2019 or later, or Windows 10/11 on `amd64`; Git for
106 Windows on the machine `PATH`; and an elevated PowerShell. Download and run the
107 installer:
108
109 ```powershell
110 Invoke-WebRequest https://rodent.software/vole/channels/stable/install.ps1 -OutFile install.ps1
111 .\install.ps1
112 ```
113
114 The script downloads the MSI, checks it against the release's `SHA256SUMS`, and
115 installs it. The installer registers and starts the `Vole` service and writes a
116 default configuration to `%ProgramData%\Vole\vole.toml`. It does not create an
117 instance administrator.
118
119 Confirm the installation with the installed executable:
120
121 ```powershell
122 & "C:\Program Files\Vole\vole.exe" version
123 ```
124
125 !!! warning "Windows reports an unknown publisher"
126 The MSI is not Authenticode-signed. The installer checks its checksum; for
127 independent signature verification, follow
128 [Verify a direct download](#verify-a-direct-download) before running the MSI.
129
130 Use `.\install.ps1 -DryRun` to preview the installation. To select a release,
131 see [Pin a release](#pin-a-release). To install without the script, download
132 `vole-windows-amd64.msi` from the
133 [stable channel](https://rodent.software/vole/channels/stable) and run it with
134 `msiexec /i`.
135
136 Continue with [Deploy on Windows](deploy/windows.md) to configure HTTPS, create
137 the first administrator, and open the firewall. Run CI runners on Linux; the
138 Windows package provides the forge server and CLI client only.
139
140 ## Build from source
141
142 Use this path when you want to change Vole. You need Git and Go with toolchain
143 management. `go.mod` selects Go 1.27.4 and downloads that toolchain when needed.
144 SQLite uses a pure-Go driver, so you do not need a C compiler.
145
146 ```sh
147 git clone https://rodent.software/vole.git
148 cd vole
149 go install ./cmd/vole
150 vole version
151 ```
152
153 `go install` writes the command to `$(go env GOPATH)/bin`; add that directory to
154 your `PATH` if necessary. A source build reports its revision and adds `.dirty`
155 when the checkout has uncommitted changes. See `DEVELOPMENT.md` in the checkout
156 for tests and a throwaway development instance.
157
158 ## Other Linux installation methods
159
160 ### Install a release binary
161
162 Use the standalone binary when your distribution does not use one of the
163 supported package managers. Install Git first. These commands install the
164 current stable `amd64` binary for your account:
165
166 ```sh
167 curl -fLO https://rodent.software/vole/channels/stable/vole-linux-amd64
168 install -D -m 0755 vole-linux-amd64 ~/.local/bin/vole
169 vole version
170 ```
171
172 On ARM, replace `vole-linux-amd64` with `vole-linux-arm64`. Make sure
173 `~/.local/bin` is on your `PATH`. The binary is static and includes SQLite, so it
174 has no runtime library dependencies. To authenticate the download before
175 installing it, follow [Verify a direct download](#verify-a-direct-download).
176
177 ### Install a package file
178
179 Download the `.deb`, `.rpm`, or `.pkg.tar.zst` for your architecture from the
180 [stable channel](https://rodent.software/vole/channels/stable). Follow
181 [Verify a direct download](#verify-a-direct-download) before installing it, then
182 use the command for your distribution.
183
184 Debian or Ubuntu:
185
186 ```sh
187 sudo apt install ./vole_*.deb
188 vole version
189 ```
190
191 Fedora, RHEL, Rocky, or AlmaLinux:
192
193 ```sh
194 sudo dnf install ./vole-*.rpm
195 vole version
67 196 ```
68 197
69 The package installs Git, the `vole` command, systemd units, and
70 `/etc/vole/vole.toml`. It does not create an instance admin or start the forge.
71 See [Packages and upgrades](packaging.md) for installed paths, upgrades, and
72 version pinning.
198 Arch Linux:
199
200 ```sh
201 sudo pacman -U ./vole-*.pkg.tar.zst
202 vole version
203 ```
73 204
74 ## Add the repository by hand
205 ### Add the repository by hand
75 206
76 Use these commands to make each change to your package manager yourself. They
77 configure the same key and repository as the install script and make the package
78 manager verify Vole's signed packages and repository metadata.
79 [Package repositories](packaging.md#package-repositories) explains the signature
80 checks and how to verify the release key independently.
207 Use these commands to inspect and apply each package-manager change yourself.
208 They configure the same signed repository as the install script.
81 209
82 ### Debian or Ubuntu
210 #### Debian or Ubuntu
83 211
84 212 ```sh
85 213 sudo install -d -m 0755 /etc/apt/keyrings
@@ -88,9 +216,12 @@ sudo curl -fsSL https://rodent.software/vole/channels/stable/vole-release-key.as
88 216 echo 'deb [signed-by=/etc/apt/keyrings/vole.asc] https://rodent.software/vole/channels/stable/apt ./' \
89 217 | sudo tee /etc/apt/sources.list.d/vole.list
90 218 sudo apt update && sudo apt install vole
219 vole version
91 220 ```
92 221
93 ### Fedora, RHEL, or Rocky
222 #### Fedora, RHEL, or Rocky
223
224 Use this repository on AlmaLinux as well:
94 225
95 226 ```sh
96 227 sudo curl -fsSL https://rodent.software/vole/channels/stable/vole-release-key.asc \
@@ -106,9 +237,13 @@ repo_gpgcheck=1
106 237 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-vole
107 238 EOF
108 239 sudo dnf install vole
240 vole version
109 241 ```
110 242
111 ### Arch Linux
243 #### Arch Linux
244
245 If this machine has never initialized its pacman keyring, run
246 `sudo pacman-key --init` first. Then add Vole's key and repository:
112 247
113 248 ```sh
114 249 curl -fsSLO https://rodent.software/vole/channels/stable/vole-release-key.asc
@@ -120,157 +255,137 @@ Server = https://rodent.software/vole/channels/stable/pacman/$arch
120 255 SigLevel = Required DatabaseRequired
121 256 EOF
122 257 sudo pacman -Syu vole
258 vole version
123 259 ```
124 260
125 Run `sudo pacman-key --init` first if this machine has never initialized its
126 keyring. Pacman expands `$arch` to `x86_64` or `aarch64`; apt and dnf select the
261 Pacman expands `$arch` to `x86_64` or `aarch64`. Apt and dnf select the
127 262 architecture automatically.
128 263
129 Then confirm the installation with `vole version`.
130
131 ## Install a package file
264 ## Pin a release
132 265
133 Download one `.deb`, `.rpm`, or `.pkg.tar.zst` for your architecture from the
134 [current stable release](https://rodent.software/vole/channels/stable). To check
135 its signature and checksum before installing it, follow
136 [Verify a direct download](packaging.md#verify-a-direct-download).
266 The install scripts follow the `stable` channel by default. To install one
267 release instead, download the script for your platform and pass the tag.
137 268
138 From the download directory, run the command for your distribution:
269 On Linux, or on macOS for a system-wide installation:
139 270
140 271 ```sh
141 sudo apt install ./vole_*.deb # Debian or Ubuntu
142 sudo dnf install ./vole-*.rpm # Fedora, RHEL, or Rocky
143 sudo pacman -U ./vole-*.pkg.tar.zst # Arch Linux
272 sudo sh install.sh --version v0.2.0
273 ```
274
275 Omit `sudo` for a user-local macOS installation. On Windows:
276
277 ```powershell
278 .\install.ps1 -Version v0.2.0
144 279 ```
145 280
146 Then confirm the installation with `vole version`.
281 For a manually configured package repository, replace `/channels/stable` in its
282 base URL with `/releases/v0.2.0/artifacts`. For example, a pinned apt source
283 ends in `/releases/v0.2.0/artifacts/apt`. Change that URL when you are ready to
284 upgrade.
147 285
148 ## Install a release binary
286 ## Verify a direct download
149 287
150 Install Git first. The binary is static and compiles SQLite in, so it has no
151 runtime library dependencies; that is also why a release binary works on any
152 Linux distribution, including one without a built package.
288 Repository installations already verify Vole's signed packages and repository
289 metadata. Use this procedure for a binary, package file, or MSI that you download
290 directly.
153 291
154 These commands download the current stable `amd64` binary and install it in
155 `~/.local/bin`. To verify the binary before installing it, follow
156 [Verify a direct download](packaging.md#verify-a-direct-download).
292 Every release publishes `SHA256SUMS`, the detached signature `SHA256SUMS.asc`,
293 and `vole-release-key.asc`. On Linux or macOS, download those files into the
294 directory containing the release artifact you want to check:
157 295
158 296 ```sh
159 curl -fLO https://rodent.software/vole/channels/stable/vole-linux-amd64
160 install -D -m 0755 vole-linux-amd64 ~/.local/bin/vole
161 vole version
297 tag=v0.2.0
298 base=https://rodent.software/vole/releases/$tag/artifacts
299 curl -fLO "$base/vole-release-key.asc"
300 curl -fLO "$base/SHA256SUMS"
301 curl -fLO "$base/SHA256SUMS.asc"
302 gpg --import vole-release-key.asc
303 gpg --fingerprint 'Vole Release'
304 gpg --verify SHA256SUMS.asc SHA256SUMS
305 sha256sum -c --ignore-missing SHA256SUMS
162 306 ```
163 307
164 On ARM, replace `vole-linux-amd64` with `vole-linux-arm64`. Make sure
165 `~/.local/bin` is on your `PATH`.
308 `gpg --verify` must report `Good signature`. The checksum command checks every
309 downloaded file named in `SHA256SUMS` and skips files you did not download.
166 310
167 ## Install on Windows
311 On macOS, install GnuPG with `brew install gnupg` and replace the last command
312 with:
313
314 ```sh
315 shasum -a 256 -c --ignore-missing SHA256SUMS
316 ```
168 317
169 There is no package repository for Windows yet. The release publishes an MSI and
170 an `install.ps1` that downloads it, checks it against the release's
171 `SHA256SUMS`, and installs it. Run it from an elevated PowerShell:
318 On Windows, `install.ps1` performs the checksum comparison automatically. To
319 check the MSI yourself, verify `SHA256SUMS.asc` with GnuPG, find the
320 `vole-windows-amd64.msi` entry in `SHA256SUMS`, and compare it with:
172 321
173 322 ```powershell
174 Invoke-WebRequest https://rodent.software/vole/channels/stable/install.ps1 -OutFile install.ps1
175 .\install.ps1
323 (Get-FileHash .\vole-windows-amd64.msi -Algorithm SHA256).Hash
176 324 ```
177 325
178 `-Version v0.2.0` installs a pinned release, `-Channel` follows another channel,
179 and `-DryRun` prints the plan without changing anything. To install the MSI
180 directly, download `vole-windows-amd64.msi` from the
181 [current stable release](https://rodent.software/vole/channels/stable) and run
182 `msiexec /i`. The MSI is not Authenticode-signed yet, so Windows will warn about
183 an unknown publisher; check the download against `SHA256SUMS`, which the release
184 signs with GPG, before running it.
185
186 The package installs `vole.exe` under `C:\Program Files\Vole` and registers the
187 `Vole` service, running as the virtual account `NT SERVICE\Vole`. It does not
188 ship a configuration: `vole service install` writes a documented default to
189 `%ProgramData%\Vole\vole.toml` the first time, and neither that file nor the
190 instance data is part of the package, so uninstalling leaves both in place.
191 Upgrading is installing a newer MSI.
192
193 Windows support covers the forge server and the CLI client, not the CI runner.
194 [Deploy on Windows](deploy/windows.md) covers the configuration, the firewall,
195 the first administrator, and upgrading.
196
197 ## Install on macOS
326 For an independent key check, compare the imported key's fingerprint with the
327 public key committed at `packaging/keys/vole-release.asc` in Vole's source
328 repository. The release also publishes `vole-release-key.fingerprint`. HTTPS
329 authenticates the release host; comparing with the source checkout gives you a
330 second path for authenticating the key.
198 331
199 macOS binaries are cross-compiled on Linux and attached to each release. The
200 install script detects macOS and installs the matching binary after checking it
201 against the release's `SHA256SUMS`:
332 ## Upgrade an installed server
202 333
203 ```sh
204 curl -fsSL https://rodent.software/vole/channels/stable/install.sh | sh
205 ```
334 !!! danger "Back up before upgrading"
335 Database migrations run in place and cannot be reversed by installing an
336 older binary. Follow [Back up an instance](backup-and-restore.md#back-up-an-instance)
337 and test the backup before upgrading.
206 338
207 Without `sudo` it installs into `~/.local/bin`, so it changes nothing outside
208 your home directory; run it under `sudo` to install into `/usr/local/bin` for the
209 whole machine. If Homebrew already manages `vole`, the script refuses and points
210 at `brew upgrade vole`; see [Install on macOS with Homebrew](deploy/macos.md#install-with-homebrew)
211 for the formula and its `brew services` lifecycle.
339 ### Upgrade a Linux package
212 340
213 A Mac without the command line tools has a `/usr/bin/git` shim that pops a dialog.
214 If `git --version` does that, run `xcode-select --install` first; the installer
215 does not run any `git` command, but Vole needs Git to serve repositories.
341 Use the package manager connected to Vole's repository.
216 342
217 To install the binary by hand instead:
343 Debian or Ubuntu:
218 344
219 345 ```sh
220 curl -fLO https://rodent.software/vole/channels/stable/vole-darwin-arm64
221 install -D -m 0755 vole-darwin-arm64 ~/.local/bin/vole
222 vole version
346 sudo apt update && sudo apt upgrade vole
223 347 ```
224 348
225 On an Intel Mac, replace `vole-darwin-arm64` with `vole-darwin-amd64`. macOS 13
226 or later is required, which is the floor the Go toolchain sets. The binary
227 carries an ad-hoc signature, which is what Apple Silicon requires in order to
228 execute it; neither `curl` nor a package manager adds the quarantine attribute,
229 so Gatekeeper does not prompt. To verify the download first, follow
230 [Verify a direct download](packaging.md#verify-a-direct-download).
349 Fedora, RHEL, Rocky, or AlmaLinux:
231 350
232 The same binary is the server, so a laptop instance works from a directory with
233 `vole admin init --dir .` and `vole serve`; see the
234 [Quickstart](quickstart.md). The Linux packages' systemd units and paths do not
235 apply, and this release does not ship a `launchd` unit.
236
237 ## Build from source
351 ```sh
352 sudo dnf upgrade vole
353 ```
238 354
239 Use this path when you want to change Vole. You need Git and Go with toolchain
240 management. `go.mod` selects Go 1.27.4 and downloads that toolchain when needed.
241 There is no C compiler to install: SQLite is compiled in by a pure-Go driver.
355 Arch Linux:
242 356
243 357 ```sh
244 git clone https://rodent.software/vole.git
245 cd vole
246 go install ./cmd/vole
247 vole version
358 sudo pacman -Syu vole
248 359 ```
249 360
250 `go install` writes to `$(go env GOPATH)/bin`; make sure that directory is on
251 your `PATH`. A build from the source tree reports the commit it came from, with
252 `.dirty` when the tree had uncommitted changes, and a package or release build
253 reports only its tag:
361 Restart the service if the package manager did not:
254 362
255 ```text
256 4f8a3da
363 ```sh
364 sudo systemctl restart vole
257 365 ```
258 366
259 The same source cross-compiles for the release targets, because no cgo is
260 involved:
367 Check the installed version and service state:
261 368
262 369 ```sh
263 CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build ./cmd/vole
264 CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build ./cmd/vole
370 vole version
371 sudo systemctl status vole --no-pager
265 372 ```
266 373
267 See the source repository's `DEVELOPMENT.md` for tests and a throwaway
268 development instance.
374 Also check account sign-in, an SSH clone, and runner connectivity. Upgrade the
375 instance before its runners; see [Upgrade a runner](runner.md#upgrade-a-runner).
376
377 ### Upgrade macOS or Windows
378
379 On macOS, use `brew upgrade vole` for a Homebrew installation or run the install
380 script again for a standalone binary. Restart a running service after upgrading.
381 On Windows, run `install.ps1` again or install the newer MSI; see
382 [Deploy on Windows § Upgrading](deploy/windows.md#upgrading).
269 383
270 384 ## Next
271 385
272 386 - [Quickstart](quickstart.md) — create a local repository, push a commit, and
273 387 open an issue.
274 - [Deploy a server](deploy/index.md) — configure a public forge and its first
275 admin.
276 - [Packages and upgrades](packaging.md#upgrading) — upgrade an installed server.
388 - [Deploy on Linux](deploy/linux.md) — configure a public forge and its first
389 administrator.
390 - [Backup and restore](backup-and-restore.md) — protect an instance before an
391 upgrade.