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.

Blame · docs/install.md

Line attribution on main · 391 line(s)

1f8afe73
Keenan Nemetz
21d ago
1 # Install
2
d1f44d83
Keenan Nemetz
21h ago
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.
1f8afe73
Keenan Nemetz
21d ago
5
d1f44d83
Keenan Nemetz
21h ago
6 | Your platform or goal | Start with | Other options |
1f8afe73
Keenan Nemetz
21d ago
7 |---|---|---|
d1f44d83
Keenan Nemetz
21h ago
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) | — |
1f8afe73
Keenan Nemetz
21d ago
13
d1f44d83
Keenan Nemetz
21h ago
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:
73e98b74
Keenan Nemetz
15d ago
23
16a8be36
Keenan Nemetz
13d ago
24 ```sh
25 curl -fsSL https://rodent.software/vole/channels/stable/install.sh | sudo sh
26 ```
27
28 The script detects your distribution and architecture, installs the release key
d1f44d83
Keenan Nemetz
21h ago
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 ```
16a8be36
Keenan Nemetz
13d ago
45
d1f44d83
Keenan Nemetz
21h ago
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:
16a8be36
Keenan Nemetz
13d ago
52
53 ```sh
54 curl -fsSLO https://rodent.software/vole/channels/stable/install.sh
55 less install.sh
d1f44d83
Keenan Nemetz
21h ago
56 sh install.sh --dry-run
16a8be36
Keenan Nemetz
13d ago
57 sudo sh install.sh
58 ```
59
d1f44d83
Keenan Nemetz
21h ago
60 Run `sh install.sh --help` for channel, version-pinning, repository-only, and
61 image-build options.
16a8be36
Keenan Nemetz
13d ago
62
d1f44d83
Keenan Nemetz
21h ago
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:
16a8be36
Keenan Nemetz
13d ago
72
73 ```sh
d1f44d83
Keenan Nemetz
21h ago
74 brew tap rodent-software/homebrew-tap https://rodent.software/homebrew-tap.git
75 brew install vole
16a8be36
Keenan Nemetz
13d ago
76 vole version
77 ```
78
d1f44d83
Keenan Nemetz
21h ago
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
16a8be36
Keenan Nemetz
13d ago
196 ```
197
d1f44d83
Keenan Nemetz
21h ago
198 Arch Linux:
199
200 ```sh
201 sudo pacman -U ./vole-*.pkg.tar.zst
202 vole version
203 ```
16a8be36
Keenan Nemetz
13d ago
204
d1f44d83
Keenan Nemetz
21h ago
205 ### Add the repository by hand
16a8be36
Keenan Nemetz
13d ago
206
d1f44d83
Keenan Nemetz
21h ago
207 Use these commands to inspect and apply each package-manager change yourself.
208 They configure the same signed repository as the install script.
1b1571bb
Keenan Nemetz
13d ago
209
d1f44d83
Keenan Nemetz
21h ago
210 #### Debian or Ubuntu
73e98b74
Keenan Nemetz
15d ago
211
212 ```sh
a755e48a
Keenan Nemetz
15d ago
213 sudo install -d -m 0755 /etc/apt/keyrings
214 sudo curl -fsSL https://rodent.software/vole/channels/stable/vole-release-key.asc \
215 -o /etc/apt/keyrings/vole.asc
216 echo 'deb [signed-by=/etc/apt/keyrings/vole.asc] https://rodent.software/vole/channels/stable/apt ./' \
73e98b74
Keenan Nemetz
15d ago
217 | sudo tee /etc/apt/sources.list.d/vole.list
1b1571bb
Keenan Nemetz
13d ago
218 sudo apt update && sudo apt install vole
d1f44d83
Keenan Nemetz
21h ago
219 vole version
73e98b74
Keenan Nemetz
15d ago
220 ```
221
d1f44d83
Keenan Nemetz
21h ago
222 #### Fedora, RHEL, or Rocky
223
224 Use this repository on AlmaLinux as well:
73e98b74
Keenan Nemetz
15d ago
225
226 ```sh
a755e48a
Keenan Nemetz
15d ago
227 sudo curl -fsSL https://rodent.software/vole/channels/stable/vole-release-key.asc \
228 -o /etc/pki/rpm-gpg/RPM-GPG-KEY-vole
229 sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-vole
73e98b74
Keenan Nemetz
15d ago
230 sudo tee /etc/yum.repos.d/vole.repo >/dev/null <<'EOF'
231 [vole]
232 name=Vole
233 baseurl=https://rodent.software/vole/channels/stable/yum/
234 enabled=1
a755e48a
Keenan Nemetz
15d ago
235 gpgcheck=1
236 repo_gpgcheck=1
237 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-vole
73e98b74
Keenan Nemetz
15d ago
238 EOF
239 sudo dnf install vole
d1f44d83
Keenan Nemetz
21h ago
240 vole version
73e98b74
Keenan Nemetz
15d ago
241 ```
242
d1f44d83
Keenan Nemetz
21h ago
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:
fbdb3818
Keenan Nemetz
14d ago
247
248 ```sh
249 curl -fsSLO https://rodent.software/vole/channels/stable/vole-release-key.asc
250 sudo pacman-key --add vole-release-key.asc
251 sudo pacman-key --lsign-key 01A6F610DBD731DD3C2321C52D74BC712CE88523
252 sudo tee -a /etc/pacman.conf >/dev/null <<'EOF'
253 [vole]
254 Server = https://rodent.software/vole/channels/stable/pacman/$arch
255 SigLevel = Required DatabaseRequired
256 EOF
257 sudo pacman -Syu vole
d1f44d83
Keenan Nemetz
21h ago
258 vole version
fbdb3818
Keenan Nemetz
14d ago
259 ```
260
d1f44d83
Keenan Nemetz
21h ago
261 Pacman expands `$arch` to `x86_64` or `aarch64`. Apt and dnf select the
1b1571bb
Keenan Nemetz
13d ago
262 architecture automatically.
1f8afe73
Keenan Nemetz
21d ago
263
d1f44d83
Keenan Nemetz
21h ago
264 ## Pin a release
1f8afe73
Keenan Nemetz
21d ago
265
d1f44d83
Keenan Nemetz
21h ago
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.
a755e48a
Keenan Nemetz
15d ago
268
d1f44d83
Keenan Nemetz
21h ago
269 On Linux, or on macOS for a system-wide installation:
a755e48a
Keenan Nemetz
15d ago
270
271 ```sh
d1f44d83
Keenan Nemetz
21h ago
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
a755e48a
Keenan Nemetz
15d ago
279 ```
280
d1f44d83
Keenan Nemetz
21h ago
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.
a755e48a
Keenan Nemetz
15d ago
285
d1f44d83
Keenan Nemetz
21h ago
286 ## Verify a direct download
1f8afe73
Keenan Nemetz
21d ago
287
d1f44d83
Keenan Nemetz
21h ago
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.
1b1571bb
Keenan Nemetz
13d ago
291
d1f44d83
Keenan Nemetz
21h ago
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:
1f8afe73
Keenan Nemetz
21d ago
295
296 ```sh
d1f44d83
Keenan Nemetz
21h ago
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
1f8afe73
Keenan Nemetz
21d ago
306 ```
307
d1f44d83
Keenan Nemetz
21h ago
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.
1f8afe73
Keenan Nemetz
21d ago
310
d1f44d83
Keenan Nemetz
21h ago
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 ```
31560d91
Keenan Nemetz
2d ago
317
d1f44d83
Keenan Nemetz
21h ago
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:
31560d91
Keenan Nemetz
2d ago
321
322 ```powershell
d1f44d83
Keenan Nemetz
21h ago
323 (Get-FileHash .\vole-windows-amd64.msi -Algorithm SHA256).Hash
31560d91
Keenan Nemetz
2d ago
324 ```
325
d1f44d83
Keenan Nemetz
21h ago
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.
629df77e
Keenan Nemetz
12d ago
331
d1f44d83
Keenan Nemetz
21h ago
332 ## Upgrade an installed server
a4a6d1e9
Keenan Nemetz
12d ago
333
d1f44d83
Keenan Nemetz
21h ago
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.
a4a6d1e9
Keenan Nemetz
12d ago
338
d1f44d83
Keenan Nemetz
21h ago
339 ### Upgrade a Linux package
75478a9d
Keenan Nemetz
3d ago
340
d1f44d83
Keenan Nemetz
21h ago
341 Use the package manager connected to Vole's repository.
a4a6d1e9
Keenan Nemetz
12d ago
342
d1f44d83
Keenan Nemetz
21h ago
343 Debian or Ubuntu:
629df77e
Keenan Nemetz
12d ago
344
345 ```sh
d1f44d83
Keenan Nemetz
21h ago
346 sudo apt update && sudo apt upgrade vole
629df77e
Keenan Nemetz
12d ago
347 ```
348
d1f44d83
Keenan Nemetz
21h ago
349 Fedora, RHEL, Rocky, or AlmaLinux:
1f8afe73
Keenan Nemetz
21d ago
350
d1f44d83
Keenan Nemetz
21h ago
351 ```sh
352 sudo dnf upgrade vole
353 ```
0d8a8c55
Keenan Nemetz
13d ago
354
d1f44d83
Keenan Nemetz
21h ago
355 Arch Linux:
1f8afe73
Keenan Nemetz
21d ago
356
357 ```sh
d1f44d83
Keenan Nemetz
21h ago
358 sudo pacman -Syu vole
0d8a8c55
Keenan Nemetz
13d ago
359 ```
360
d1f44d83
Keenan Nemetz
21h ago
361 Restart the service if the package manager did not:
0d8a8c55
Keenan Nemetz
13d ago
362
d1f44d83
Keenan Nemetz
21h ago
363 ```sh
364 sudo systemctl restart vole
348a43c3
Keenan Nemetz
20d ago
365 ```
366
d1f44d83
Keenan Nemetz
21h ago
367 Check the installed version and service state:
0d8a8c55
Keenan Nemetz
13d ago
368
369 ```sh
d1f44d83
Keenan Nemetz
21h ago
370 vole version
371 sudo systemctl status vole --no-pager
0d8a8c55
Keenan Nemetz
13d ago
372 ```
373
d1f44d83
Keenan Nemetz
21h ago
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).
1f8afe73
Keenan Nemetz
21d ago
383
384 ## Next
385
1b1571bb
Keenan Nemetz
13d ago
386 - [Quickstart](quickstart.md) — create a local repository, push a commit, and
387 open an issue.
d1f44d83
Keenan Nemetz
21h ago
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.